Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
2 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
MLAB-677: Deactivate routes to access Projekte und Dienste
parent
6a486da9
devel
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/routes/account.ts
+6
-6
src/routes/account.ts
with
6 additions
and
6 deletions
+6
-6
src/routes/account.ts
+
6
-
6
View file @
ff10a328
...
@@ -164,7 +164,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
@@ -383,7 +383,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -383,7 +383,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
// ============= NEW GITLAB PAGES ===========================
// ============= 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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
@@ -403,7 +403,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
@@ -463,7 +463,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
@@ -499,7 +499,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -499,7 +499,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
}
}
})
})
// update a website
// 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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
@@ -559,7 +559,7 @@ module.exports = function (app: any, config: any, passport: any, lang: string) {
...
@@ -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
())
{
if
(
!
req
.
isAuthenticated
())
{
res
.
redirect
(
'
/login
'
)
res
.
redirect
(
'
/login
'
)
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets