mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
a more stupid way of doing middle chaining, but at least it is clearer.
This commit is contained in:
@@ -2,7 +2,7 @@ package main
|
||||
|
||||
import "net/http"
|
||||
|
||||
func loggingMiddleware(next http.Handler) http.Handler {
|
||||
func loggingMiddleware(next http.HandlerFunc) http.HandlerFunc {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
path := r.URL.Path
|
||||
if r.URL.RawQuery != "" {
|
||||
|
||||
Reference in New Issue
Block a user