This commit is contained in:
Lars Liden 2019-03-25 08:28:38 -07:00
Родитель a71164efe1
Коммит fe9b8968b2
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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, () => {