mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-06 07:53:54 +00:00
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import axios from 'axios';
|
|
import { GetInfo } from 'ontime-types';
|
|
|
|
import { apiEntryUrl } from './constants';
|
|
|
|
const sessionPath = `${apiEntryUrl}/session`;
|
|
|
|
/**
|
|
* HTTP request to retrieve application info
|
|
*/
|
|
export async function getInfo(): Promise<GetInfo> {
|
|
const res = await axios.get(`${sessionPath}/info`);
|
|
return res.data;
|
|
}
|