Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
ff10a328
Commit
ff10a328
authored
Sep 16, 2022
by
Rosanny Sihombing
Browse files
MLAB-677: Deactivate routes to access Projekte und Dienste
parent
6a486da9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/routes/account.ts
View file @
ff10a328
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment