mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-18 14:30:29 +00:00
Introduces backend and frontend support for restarting the worker process from the WebUI. Adds API endpoint, controller, and UI button for process management. Refactors napcat-shell to support master/worker process lifecycle and restart logic.
10 lines
246 B
TypeScript
10 lines
246 B
TypeScript
import { Router } from 'express';
|
|
import { RestartProcessHandler } from '../api/Process';
|
|
|
|
const router = Router();
|
|
|
|
// POST /api/Process/Restart - 重启进程
|
|
router.post('/Restart', RestartProcessHandler);
|
|
|
|
export { router as ProcessRouter };
|