Mods listing, new home page and fixes on the backend side

This commit is contained in:
Gu://em_ 2025-05-13 21:49:56 +02:00
parent 0294d7d0c0
commit a7cf958770
24 changed files with 317 additions and 106 deletions

View file

@ -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 () => {