diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts new file mode 100644 index 000000000..7c499eb13 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts @@ -0,0 +1,15 @@ +import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class CustomLoginBannerService { + baseUiURL = 'ui-api/login/custom_banner'; + + constructor(private http: HttpClient) {} + + getBannerText() { + return this.http.get<string>(this.baseUiURL); + } +} |