mirror of
https://github.com/sasjs/server.git
synced 2026-01-06 22:20:06 +00:00
feat: generate executables for sasjs/server with web component
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import path from 'path'
|
||||
import express from 'express'
|
||||
|
||||
import morgan from 'morgan'
|
||||
import webRouter from './routes/web'
|
||||
import apiRouter from './routes/api'
|
||||
@@ -8,7 +10,7 @@ const app = express()
|
||||
|
||||
app.use(express.json({ limit: '50mb' }))
|
||||
app.use(morgan('tiny'))
|
||||
app.use(express.static('public'))
|
||||
app.use(express.static(path.join(__dirname, '../public')))
|
||||
|
||||
app.use('/', webRouter)
|
||||
app.use('/SASjsApi', apiRouter)
|
||||
|
||||
Reference in New Issue
Block a user