Fix build & CI

This commit is contained in:
John Livingston 2024-10-08 16:53:55 +02:00
parent 3f0f6e4d3b
commit 77ec284ade
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 7 additions and 2 deletions

View File

@ -22,7 +22,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '20.x'
- name: Install build dependencies
run: sudo apt update && sudo apt install wget reuse -y

View File

@ -13,7 +13,12 @@ async function initRouters (options: RegisterServerOptions): Promise<void> {
const { getRouter } = options
const router = getRouter()
router.get('/ping', (req: Request, res: Response, _next: NextFunction) => res.json({ message: 'pong' }))
router.get(
'/ping',
(req: Request, res: Response, _next: NextFunction) => {
res.json({ message: 'pong' })
}
)
router.use('/webchat', await initWebchatRouter(options))
router.use('/settings', await initSettingsRouter(options))