const express = require("express");
const fileUpload = require("express-fileupload");
const cors = require("./cors");
const session = require("./session");

const applyMiddlewares = (app) => {
    app.use(fileUpload());
    app.use(cors);
    app.use(session);
    // JSON Parser für PATCH/POST Requests
    app.use(express.json());
};

module.exports = { applyMiddlewares };