🐛 fix(tool): Added API for obtaining version, updated version information display logic

This commit is contained in:
web
2025-07-24 05:15:38 -07:00
parent 8f772c2364
commit 2675034b75
27 changed files with 389 additions and 80 deletions
+8
View File
@@ -17,3 +17,11 @@ export async function restartSystem(options?: { [key: string]: any }) {
...(options || {}),
});
}
/** Get Version GET /v1/admin/tool/version */
export async function getVersion(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.VersionResponse }>('/v1/admin/tool/version', {
method: 'GET',
...(options || {}),
});
}
+4
View File
@@ -1862,6 +1862,10 @@ declare namespace API {
enable_reset_password_verify: boolean;
};
type VersionResponse = {
version: string;
};
type Vless = {
port: number;
flow: string;