Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Misc
Synapse Admin
Commits
45c39f50
Commit
45c39f50
authored
Nov 02, 2021
by
Daniel Sonck
Browse files
Change prefix to /admin
parent
62a1a302
Pipeline
#584
passed with stages
in 2 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
45c39f50
...
...
@@ -28,7 +28,7 @@ func Middleware(urlPrefix, spaDirectory string) gin.HandlerFunc {
func
main
()
{
r
:=
gin
.
Default
()
r
.
Use
(
Middleware
(
"/"
,
"/web"
))
r
.
Use
(
Middleware
(
"/
admin
"
,
"/web"
))
r
.
Any
(
"/healthz"
,
func
(
c
*
gin
.
Context
)
{
c
.
Status
(
200
)
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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