u
This commit is contained in:
1 parent
dedefb78a7
commit
7c8e2906bc
19 files changed
+252
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package middleware
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// LoggingMiddleware logs incoming requests
|
||||
func LoggingMiddleware(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Printf("Request received: %s %s\n", r.Method, r.URL.Path)
|
||||
}
|
||||
Reference in new issue
Block a user