misc_pterodactyl-panel/resources/scripts/api/admin/getVersion.ts

23 lines
427 B
TypeScript
Raw Normal View History

import http from '@/api/http';
export interface VersionData {
panel: {
current: string;
latest: string;
2023-01-12 19:31:47 +00:00
};
wings: {
latest: string;
2023-01-12 19:31:47 +00:00
};
git: string | null;
}
export default (): Promise<VersionData> => {
return new Promise((resolve, reject) => {
http.get('/api/application/version')
.then(({ data }) => resolve(data))
.catch(reject);
});
};