Standardized type annotations for interfaces in user.ts and improved type safety in webapi.ts. Updated all Express router initializations to explicitly declare the Router type. Added missing RequestHandler typings in uploader modules for better type checking.
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
/**
|
|
* @file UpdateNapCat路由
|
|
*/
|
|
|
|
import { Router } from 'express';
|
|
import { UpdateNapCatHandler } from '@/napcat-webui-backend/src/api/UpdateNapCat';
|
|
|
|
const router: Router = Router();
|
|
|
|
// POST /api/UpdateNapCat/update - 更新NapCat
|
|
router.post('/update', UpdateNapCatHandler);
|
|
|
|
export { router as UpdateNapCatRouter }; |