add comment cleanup and add globals

This commit is contained in:
Alf Hammerseth
2019-11-16 21:13:45 +01:00
parent 54b745ec68
commit 33e6220e43
31 changed files with 4480 additions and 2552 deletions

View File

@@ -1,27 +1,32 @@
import {
pathThumbnails
} from "../settings/globals";
var express = require("express");
const path = require("path");
var router = express.Router();
router.use(function(req, res, next) {
router.use(function (req, res, next) {
next(); // make sure we go to the next routes and don't stop here
});
router.route("/favicon.ico").get(function(req, res, next) {
router.route("/favicon.ico").get(function (req, res, next) {
res.sendFile(path.join(pathThumbnails, "/public/assets/images/favicon.ico"));
});
router.route("/browserconfig.xml").get(function(req, res, next) {
router.route("/browserconfig.xml").get(function (req, res, next) {
res.sendFile(
path.join(pathThumbnails, "/public/assets/images/browserconfig.xml")
);
});
router.route("/apple-touch-icon.png").get(function(req, res, next) {
router.route("/apple-touch-icon.png").get(function (req, res, next) {
res.sendFile(
path.join(pathThumbnails, "/public/assets/images/apple-touch-icon.png")
);
});
router.route("/apple-touch-icon-precomposed.png").get(function(req, res, next) {
router.route("/apple-touch-icon-precomposed.png").get(function (req, res, next) {
res.sendFile(
path.join(
pathThumbnails,
@@ -30,4 +35,4 @@ router.route("/apple-touch-icon-precomposed.png").get(function(req, res, next) {
);
});
module.exports = router;
module.exports = router;