1
0
Fork 0
mirror of https://github.com/owncast/owncast.git synced 2025-01-01 22:27:39 +03:00
owncast/web/services/status-service.ts
2022-05-11 23:31:31 -07:00

13 lines
335 B
TypeScript

import { ServerStatus } from '../interfaces/server-status.model';
const ENDPOINT = `/api/status`;
class ServerStatusService {
public static async getStatus(): Promise<ServerStatus> {
const response = await fetch(ENDPOINT);
const status = await response.json();
return status;
}
}
export default ServerStatusService;