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