mirror of
https://github.com/sasjs/server.git
synced 2026-01-06 22:20:06 +00:00
fix: session refactoring with Saad & Allan
This commit is contained in:
@@ -2,7 +2,6 @@ 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'
|
||||
@@ -10,6 +9,9 @@ import { connectDB } from './routes/api/auth'
|
||||
|
||||
const app = express()
|
||||
|
||||
const cors=require('cors')
|
||||
app.use(cors())
|
||||
|
||||
app.use(express.json({ limit: '50mb' }))
|
||||
app.use(morgan('tiny'))
|
||||
app.use(express.static(path.join(__dirname, '../public')))
|
||||
|
||||
Reference in New Issue
Block a user