Files

23 lines
425 B
TypeScript
Raw Permalink Normal View History

2021-01-07 09:32:04 -07:00
import http from '@/api/http';
export interface VersionData {
panel: {
current: string;
latest: string;
2021-07-13 15:58:44 -06:00
}
2021-01-07 09:32:04 -07:00
wings: {
latest: string;
2021-07-13 15:58:44 -06:00
}
2021-01-07 09:32:04 -07:00
git: string | null;
}
export default (): Promise<VersionData> => {
return new Promise((resolve, reject) => {
http.get('/api/application/version')
.then(({ data }) => resolve(data))
.catch(reject);
});
};