Version 1.0.0 - Basic Web Application

This commit is contained in:
2024-12-29 15:18:12 +01:00
parent 0ffcafdf3f
commit 6f637968bd
50 changed files with 42 additions and 6643 deletions

View File

@ -1,16 +0,0 @@
var express = require('express');
var router = express.Router();
var path = require("path")
router.get("/socketlink", (req,res,next) => {
if(process.env.DEV == true) {
res.send("ws://localhost:3001")
} else {
res.send("ws://neutral.raphix.fr")
}
})
module.exports = router;

View File

@ -1,23 +0,0 @@
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;
}
}