revert 6f637968bdd5dea7f472e5a07517e072ed69715e
All checks were successful
Neutral/pipeline/head This commit looks good

revert Version 1.0.0 - Basic Web Application
This commit is contained in:
2024-12-29 14:53:26 +00:00
parent a9414ff6ce
commit ee556d859e
50 changed files with 6642 additions and 41 deletions

23
routes/link.js Normal file
View File

@ -0,0 +1,23 @@
var express = require('express');
var router = express.Router();
var path = require("path")
module.exports = router;
module.exports.ApplyLinks = class {
constructor(links) {
// Remove all routes
router.stack = []
for(var link of links) {
const url = link.url
router.get("/" + link.dest, (req,res,next) => {
res.redirect(302, url)
})
}
module.exports = router;
}
}