Refactor version API to GetNapCatVersion endpoint
Replaces the PackageInfo API and related frontend usage with a dedicated GetNapCatVersion endpoint that returns only the NapCat version string. Updates backend handler, helper, types, router, and frontend components to use the new API for improved clarity and separation of concerns.
This commit is contained in:
1 parent
f553f9dc8d
commit
e9856ac80f
7 files changed
+13
-15
No files matched your search
@@ -42,9 +42,9 @@ export default class WebUIManager {
|
||||
return data.data as ServerResponse<T>;
|
||||
}
|
||||
|
||||
public static async getPackageInfo () {
|
||||
public static async GetNapCatVersion () {
|
||||
const { data } =
|
||||
await serverRequest.get<ServerResponse<PackageInfo>>('/base/PackageInfo');
|
||||
await serverRequest.get<ServerResponse<PackageInfo>>('/base/GetNapCatVersion');
|
||||
return data.data;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user