Commit ff10a328 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

MLAB-677: Deactivate routes to access Projekte und Dienste

parent 6a486da9
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment