1 import { HttpClient } from '@angular/common/http';
2 import { Injectable } from '@angular/core';
4 import { Observable } from 'rxjs';
6 export interface Motd {
9 severity: 'info' | 'warning' | 'danger';
10 // The expiration date in ISO 8601. Does not expire if empty.
17 export class MotdService {
18 private url = 'ui-api/motd';
20 constructor(private http: HttpClient) {}
22 get(): Observable<Motd | null> {
23 return this.http.get<Motd | null>(this.url);