Initializing a diagnostic tools. WIP
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import type { NextFunction, Request, Response } from 'express'
|
||||
import { initWebchatRouter } from './webchat'
|
||||
import { initSettingsRouter } from './settings'
|
||||
|
||||
async function initRouters (options: RegisterServerOptions): Promise<void> {
|
||||
const { getRouter } = options
|
||||
@ -8,6 +9,7 @@ async function initRouters (options: RegisterServerOptions): Promise<void> {
|
||||
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))
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user