add terms of service redirect
This commit is contained in:
parent
aa9710483f
commit
1f0acef506
@ -31,6 +31,23 @@ app.get("/code-of-conduct", (req, res) => {
|
|||||||
res.redirect(301, "/policies/code-of-conduct");
|
res.redirect(301, "/policies/code-of-conduct");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("/terms-of-service", (req, res) => {
|
||||||
|
res.redirect(301, "/policies/code-of-conduct");
|
||||||
|
});
|
||||||
|
|
||||||
|
const tosRedirects = [
|
||||||
|
"/tos",
|
||||||
|
"/termsofservice",
|
||||||
|
"/policies/terms",
|
||||||
|
"/policies/tos",
|
||||||
|
"/policies/termsofservice",
|
||||||
|
];
|
||||||
|
|
||||||
|
tosRedirects.forEach((path) => {
|
||||||
|
app.get(path, (req, res) => res.redirect(301, "/policies/code-of-conduct"));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get("/policies/privacy", (req, res) => {
|
app.get("/policies/privacy", (req, res) => {
|
||||||
if (req.hostname === "poketube.fun") {
|
if (req.hostname === "poketube.fun") {
|
||||||
renderTemplate(res, req, "priv.ejs", {
|
renderTemplate(res, req, "priv.ejs", {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user