mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +00:00
chore: default is desktop mode with prompts
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import path from 'path'
|
||||
import express from 'express'
|
||||
|
||||
import morgan from 'morgan'
|
||||
import dotenv from 'dotenv'
|
||||
|
||||
import webRouter from './routes/web'
|
||||
import apiRouter from './routes/api'
|
||||
import { getWebBuildFolderPath } from './utils'
|
||||
import { connectDB } from './routes/api/auth'
|
||||
|
||||
const app = express()
|
||||
|
||||
@@ -18,4 +20,6 @@ app.use(express.json({ limit: '50mb' }))
|
||||
|
||||
app.use(express.static(getWebBuildFolderPath()))
|
||||
|
||||
export default app
|
||||
dotenv.config()
|
||||
|
||||
export default connectDB().then(() => app)
|
||||
|
||||
Reference in New Issue
Block a user