mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-06 07:29:38 +00:00
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.
10 lines
254 B
TypeScript
10 lines
254 B
TypeScript
import { Router } from 'express';
|
|
import { RestartProcessHandler } from '../api/Process';
|
|
|
|
const router: Router = Router();
|
|
|
|
// POST /api/Process/Restart - 重启进程
|
|
router.post('/Restart', RestartProcessHandler);
|
|
|
|
export { router as ProcessRouter };
|