Fix build & CI
This commit is contained in:
parent
3f0f6e4d3b
commit
77ec284ade
2
.github/workflows/gh-build.yml
vendored
2
.github/workflows/gh-build.yml
vendored
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user