From ff10a328a8225858eca64282e8d336e33ae606aa Mon Sep 17 00:00:00 2001 From: Rosanny <rosanny.sihombing@hft-stuttgart.de> Date: Fri, 16 Sep 2022 11:16:28 +0200 Subject: [PATCH] MLAB-677: Deactivate routes to access Projekte und Dienste --- src/routes/account.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/routes/account.ts b/src/routes/account.ts index da3785e7..0911562e 100644 --- a/src/routes/account.ts +++ b/src/routes/account.ts @@ -164,7 +164,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { } }) - app.get('/services', async function (req: any, res: any) { + app.get('/services_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { @@ -383,7 +383,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { // ============= NEW GITLAB PAGES =========================== - app.get('/newInformation', async function (req: any, res: any) { + app.get('/newInformation_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { @@ -403,7 +403,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { } } }) - app.post('/newInformation', async function (req: any, res: any) { + app.post('/newInformation_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { @@ -463,7 +463,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { } }) - app.get('/updateInformation', async function (req: any, res: any) { + app.get('/updateInformation_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { @@ -499,7 +499,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { } }) // update a website - app.post('/updateInformation', async function (req: any, res: any) { + app.post('/updateInformation_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { @@ -559,7 +559,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) { } }) - app.delete('/deleteProject', async function (req: any, res: any) { + app.delete('/deleteProject_DEACTIVATED', async function (req: any, res: any) { if (!req.isAuthenticated()) { res.redirect('/login') } else { -- GitLab