switched to new way :)
This commit is contained in:
parent
b03a2a25f1
commit
f22d182c8f
30 changed files with 0 additions and 0 deletions
12
src-old/server/routes/status.ts
Normal file
12
src-old/server/routes/status.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Router } from 'express';
|
||||
import type { Bot } from '../../bot/Bot.js';
|
||||
|
||||
export function statusRoutes(bot: Bot): Router {
|
||||
const router = Router();
|
||||
|
||||
router.get('/status', (_req, res) => {
|
||||
res.json(bot.getStatus());
|
||||
});
|
||||
|
||||
return router;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue