Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.8/.cache/esm/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.8/.cache/esm/6173dcfd68fc82f0.js

let config,express,serverRoutes,globalErrorHandler,loader,routeNotHandler;_68f‍.x([["default",()=>_68f‍.o]]);_68f‍.w("dotenv",[["config",["config"],function(v){config=v}]]);_68f‍.w("express",[["default",["express"],function(v){express=v}]]);_68f‍.w("./routes/serverRoutes",[["default",["serverRoutes"],function(v){serverRoutes=v}]]);_68f‍.w("./controllers/errorHandler",[["default",["globalErrorHandler"],function(v){globalErrorHandler=v}]]);_68f‍.w("./loaders/index",[["default",["loader"],function(v){loader=v}]]);_68f‍.w("./middlewares/routeNotFound",[["default",["routeNotHandler"],function(v){routeNotHandler=v}]]);
config();

const app = express();






let { middlewareLoader, excludeJwtAuthRoutes, staticRoutesLoader } = loader;

//App middlewares
middlewareLoader(app);

//load static routes
staticRoutesLoader(app);

// Global JWT Authentication Middleware
app.use(excludeJwtAuthRoutes(["/auth/login"]));

// Load Routes

app.use("/", serverRoutes);

// some kind of middleWare for express to undefined routes to send custom json || html
app.all("*", routeNotHandler);

// global middleWare error handler for operational errors
app.use(globalErrorHandler);

_68f‍.d(app);
// updateDbCollections();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists