Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Fabian Vitt
good2go
Commits
ad5aae12
Commit
ad5aae12
authored
Jun 04, 2020
by
Max Richter
Browse files
fix(): unify rest-api restapi name
parent
2f6ca1f3
Changes
1
Show whitespace changes
Inline
Side-by-side
api/rest/middlewares/logger.go
View file @
ad5aae12
...
...
@@ -8,7 +8,7 @@ import (
// LogRequests logs requests
func
LogRequests
(
next
http
.
Handler
)
http
.
Handler
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
log
.
Println
(
"[REST
-
API] "
+
r
.
Method
+
" request on: "
+
r
.
RequestURI
)
log
.
Println
(
"[RESTAPI] "
+
r
.
Method
+
" request on: "
+
r
.
RequestURI
)
next
.
ServeHTTP
(
w
,
r
)
})
}
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