FIX: UserSeeder
ADD: Get-Self endpoint for users ADD: Category and Role Seeder FIX: Login Check Bug ADD: Extra fields for documents and images in belonging model ADD: localhost:5173 to cors ADD: SuperAdmin ID to env
This commit is contained in:
@@ -12,7 +12,7 @@ const cors = require('cors')
|
||||
|
||||
const app = express()
|
||||
|
||||
const allowedOrigins = ['http://localhost:3000']
|
||||
const allowedOrigins = ['http://localhost:3000', 'http://localhost:5173']
|
||||
|
||||
app.use(
|
||||
cors({
|
||||
@@ -32,7 +32,7 @@ app.use(express.json())
|
||||
app.set('view engine', 'ejs')
|
||||
app.use(express.static('views/public'))
|
||||
|
||||
app.use('/', routerEndpoints)
|
||||
app.use('/api', routerEndpoints)
|
||||
|
||||
databaseConnection(app)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user