mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 23:10:05 +00:00
chore: restructure repo into sub folders
This commit is contained in:
10
api/src/app.ts
Normal file
10
api/src/app.ts
Normal file
@@ -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