mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
12 lines
321 B
JavaScript
12 lines
321 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
|
|
// TODO should be user selectable or at least configurable from configuration file
|
|
var theme = "olympus";
|
|
|
|
router.get('/theme/*', function (req, res, next) {
|
|
res.redirect(req.url.replace("theme", "themes/" + theme));
|
|
});
|
|
|
|
module.exports = router;
|