2022-04-27 23:19:20 -07:00
|
|
|
import { ClientConfig } from '../interfaces/client-config.model';
|
2022-05-27 15:08:59 -07:00
|
|
|
|
2022-04-25 23:10:07 -07:00
|
|
|
const ENDPOINT = `http://localhost:8080/api/config`;
|
|
|
|
|
|
|
|
class ClientConfigService {
|
|
|
|
public static async getConfig(): Promise<ClientConfig> {
|
2022-05-27 18:44:26 -07:00
|
|
|
const response = await fetch(ENDPOINT);
|
2022-04-25 23:10:07 -07:00
|
|
|
const status = await response.json();
|
|
|
|
return status;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ClientConfigService;
|