mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +00:00
chore: remove unnecessary express middleware
This commit is contained in:
@@ -4,11 +4,7 @@ import path from 'path'
|
||||
const app = express()
|
||||
|
||||
app.use(express.json({ limit: '50mb' }))
|
||||
|
||||
app.set('views', path.join(__dirname, 'views'))
|
||||
app.set('view engine', 'pug')
|
||||
|
||||
app.use(express.static(path.join(__dirname, '..', 'public')))
|
||||
app.use('/', indexRouter)
|
||||
app.use(express.static(path.join(__dirname, '..', 'Web', 'build')))
|
||||
|
||||
export default app
|
||||
|
||||
Reference in New Issue
Block a user