12 lines
225 B
Go
12 lines
225 B
Go
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)
|
|
}
|