mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-03-01 00:00:26 +00:00
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.
16 lines
662 B
TypeScript
16 lines
662 B
TypeScript
import { Router } from 'express';
|
|
import { GetThemeConfigHandler, GetNapCatVersion, QQVersionHandler, SetThemeConfigHandler } from '../api/BaseInfo';
|
|
import { StatusRealTimeHandler } from '@/napcat-webui-backend/api/Status';
|
|
import { GetProxyHandler } from '../api/Proxy';
|
|
|
|
const router = Router();
|
|
// router: 获取nc的package.json信息
|
|
router.get('/QQVersion', QQVersionHandler);
|
|
router.get('/GetNapCatVersion', GetNapCatVersion);
|
|
router.get('/GetSysStatusRealTime', StatusRealTimeHandler);
|
|
router.get('/proxy', GetProxyHandler);
|
|
router.get('/Theme', GetThemeConfigHandler);
|
|
router.post('/SetTheme', SetThemeConfigHandler);
|
|
|
|
export { router as BaseRouter };
|