mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix url path
This commit is contained in:
@@ -30,13 +30,13 @@ app.use(async function(req, res, next) {
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com/${req.url}`,
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com/${req.url}`,
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
|
||||
@@ -27,13 +27,13 @@ app.use(async function(req, res, next) {
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com/${req.url}`,
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com/${req.url}`,
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
|
||||
@@ -93,13 +93,13 @@ app.use(async function(req, res, next) {
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com/${req.url}`,
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com/${req.url}`,
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
|
||||
@@ -67,13 +67,13 @@ app.use(async function(req, res, next) {
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com/${req.url}`,
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com/${req.url}`,
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
|
||||
@@ -161,13 +161,13 @@ app.use(async function(req, res, next) {
|
||||
try {
|
||||
if (host && host === 'fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://oneuptime.com/${req.url}`,
|
||||
Location: `https://oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
if (host && host === 'staging.fyipe.com') {
|
||||
res.writeHead(301, {
|
||||
Location: `https://staging.oneuptime.com/${req.url}`,
|
||||
Location: `https://staging.oneuptime.com${req.url}`,
|
||||
});
|
||||
return res.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user