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
@@ -201,7 +201,7 @@ const NapCatVersion = () => {
|
||||
data: packageData,
|
||||
loading: packageLoading,
|
||||
error: packageError,
|
||||
} = useRequest(WebUIManager.getPackageInfo);
|
||||
} = useRequest(WebUIManager.GetNapCatVersion);
|
||||
|
||||
const currentVersion = packageData?.version;
|
||||
|
||||
|
||||
Reference in new issue
Block a user