🐛 fix(tool): Added API for obtaining version, updated version information display logic
This commit is contained in:
@@ -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
@@ -1862,6 +1862,10 @@ declare namespace API {
|
||||
enable_reset_password_verify: boolean;
|
||||
};
|
||||
|
||||
type VersionResponse = {
|
||||
version: string;
|
||||
};
|
||||
|
||||
type Vless = {
|
||||
port: number;
|
||||
flow: string;
|
||||
|
||||
Reference in New Issue
Block a user