Move src/{views,res} to root
To make it available after ts server files are compiled into lib folder
|
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 7.8 KiB |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
@ -23,10 +23,10 @@ app.locals.version = require('../../package.json').version
|
||||
app.locals.baseUrl = BASE_URL
|
||||
|
||||
app.set('view engine', 'pug')
|
||||
app.set('views', path.join(__dirname, '../views'))
|
||||
app.set('views', path.join(__dirname, '../../views'))
|
||||
|
||||
const router = express.Router()
|
||||
router.use('/res', express.static(path.join(__dirname, '../res')))
|
||||
router.use('/res', express.static(path.join(__dirname, '../../res')))
|
||||
router.use('/static', express.static(path.join(__dirname, '../../build')))
|
||||
router.use('/call', call)
|
||||
router.use('/', index)
|
||||
|
||||