mirror of
https://github.com/owncast/owncast.git
synced 2024-11-24 21:59:43 +03:00
13 lines
335 B
TypeScript
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;
|