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 // Define Constants & Setup Database
const app = express(); const app = express();
const port = Server.Port; const port = Server.Port;
const timeout = 10 * 60 * 1000; const timeout = 10 * 60 * 1000; // 10 minutes
// Set Up Express session and View engine // Set Up Express session and View engine
app.use(bearerToken()); app.use(bearerToken());
app.use(bodyParser.json({ limit: Server.BodyLimit })); app.use(bodyParser.json({ limit: Server.BodyLimit }));

View file

@ -6,7 +6,7 @@ const upload = require("../api/upload");
const storage = require("../api/storage"); const storage = require("../api/storage");
const config = require("../config.json"); const config = require("../config.json");
// Establish path and create router // Establish path and create router
/** Absolute Router Path /api/stash*/ // Absolute Router Path /api/stash
const router = express.Router(); const router = express.Router();
const cairoMiddleware = (req, res, next) => { const cairoMiddleware = (req, res, next) => {