UNPKG

562 BPlain TextView Raw
1/**
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License.
4 */
5import * as express from 'express'
6import * as clUI from '@conversationlearner/ui'
7
8// console.log(`@conversationlearner/ui directory path: `, clUI.directoryPath)
9// console.log(`@conversationlearner/ui default file path: `, clUI.defaultFilePath)
10
11const router = express.Router({ caseSensitive: false })
12router.use('/ui', express.static(clUI.directoryPath));
13router.get('/ui/*', (_, res) => {
14 res.sendFile(clUI.defaultFilePath)
15})
16
17export default router