github.com/argoproj/argo-cd/v2@v2.10.9/ui/src/app/shared/services/auth-service.ts (about) 1 import {AuthSettings, Plugin} from '../models'; 2 import requests from './requests'; 3 4 export class AuthService { 5 public settings(): Promise<AuthSettings> { 6 return requests.get('/settings').then(res => res.body as AuthSettings); 7 } 8 9 public plugins(): Promise<Plugin[]> { 10 return requests.get('/settings/plugins').then(res => (res.body.plugins || []) as Plugin[]); 11 } 12 }