mirror of
https://github.com/sasjs/server.git
synced 2026-07-24 05:32:15 +00:00
chore: restructure repo into sub folders
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import express from 'express'
|
||||
import indexRouter from './routes'
|
||||
import path from 'path'
|
||||
const app = express()
|
||||
|
||||
app.use(express.json({ limit: '50mb' }))
|
||||
app.use('/', indexRouter)
|
||||
app.use(express.static(path.join(__dirname, '..', '..', 'web', 'build')))
|
||||
|
||||
export default app
|
||||
Reference in New Issue
Block a user