mirror of
https://github.com/sasjs/server.git
synced 2026-01-04 21:30:05 +00:00
11 lines
267 B
TypeScript
11 lines
267 B
TypeScript
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
|