fix: add uiRouter
This commit is contained in:
Родитель
a71164efe1
Коммит
fe9b8968b2
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
import * as path from 'path'
|
||||
import * as express from 'express'
|
||||
import { ConversationLearner, ClientMemoryManager, FileStorage, ReadOnlyClientMemoryManager } from '@conversationlearner/sdk'
|
||||
import { ConversationLearner, ClientMemoryManager, FileStorage, ReadOnlyClientMemoryManager, uiRouter } from '@conversationlearner/sdk'
|
||||
import chalk from 'chalk'
|
||||
import config from '../config'
|
||||
import * as BB from 'botbuilder'
|
||||
|
@ -19,6 +19,9 @@ const isDevelopment = process.env.NODE_ENV === 'development'
|
|||
if (isDevelopment) {
|
||||
console.log(chalk.yellowBright(`Adding /directline routes`))
|
||||
server.use(getDolRouter(config.botPort))
|
||||
|
||||
console.log(chalk.greenBright(`Adding /ui routes`))
|
||||
server.use(uiRouter)
|
||||
}
|
||||
|
||||
server.listen(config.botPort, () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче