Centralize URL flow

This commit is contained in:
Dunemask 2021-08-14 21:49:07 -06:00
parent 8e4874bbf0
commit efa7b6ed11
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ const stashRouter = require("./routes/stash-route");
// Define Constants & Setup Database
const app = express();
const port = Server.Port;
const timeout = 10 * 60 * 1000;
const timeout = 10 * 60 * 1000; // 10 minutes
// Set Up Express session and View engine
app.use(bearerToken());
app.use(bodyParser.json({ limit: Server.BodyLimit }));

View file

@ -1,12 +1,12 @@
const express = require("express");
const axios = require("axios");
//Local Imports & Configs
// Local Imports & Configs
const asUser = require("../api/user");
const upload = require("../api/upload");
const storage = require("../api/storage");
const config = require("../config.json");
//Establish path and create router
/** Absolute Router Path /api/stash*/
// Establish path and create router
// Absolute Router Path /api/stash
const router = express.Router();
const cairoMiddleware = (req, res, next) => {