12 lines
272 B
TypeScript
12 lines
272 B
TypeScript
import { callApi, HTTP } from "../tools";
|
|
import { IGameTimeResponse } from "./types";
|
|
|
|
async function fetchTimeApi(): Promise<IGameTimeResponse> {
|
|
const data = await callApi(HTTP.GET, "game/time");
|
|
|
|
return {
|
|
time: data,
|
|
};
|
|
}
|
|
|
|
export { fetchTimeApi };
|