summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/api/custom-login-banner.service.ts
blob: 7c499eb13707b7106b2dd6f5efed175cc5d63109 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
  }
}