You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
335 B
13 lines
335 B
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;
|
|
|