Mods listing, new home page and fixes on the backend side
This commit is contained in:
parent
0294d7d0c0
commit
a7cf958770
24 changed files with 317 additions and 106 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
const express = require("express");
|
||||
const app = express();
|
||||
var cors = require('cors')
|
||||
const configManager = require("./src/utils/configManager");
|
||||
const { connectDatabase, initDatabase } = require('./src/database/index');
|
||||
|
||||
|
|
@ -12,6 +13,9 @@ const config = configManager.loadConfig();
|
|||
// --- Body parsing ---
|
||||
app.use(express.json()); // Necessary to parse JSON bodies
|
||||
|
||||
// --- Cors ---
|
||||
app.use(cors());
|
||||
|
||||
// Database connection
|
||||
(async () => {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue