NapCatQQ/packages/napcat-webui-backend/src/router/Process.ts
手瓜一十雪 01958d47a4 Refactor type annotations and router initialization
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.
2026-01-22 17:35:54 +08:00

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 };