embedded schema.sql

This commit is contained in:
$(pass /github/name)
2024-07-07 16:52:44 +02:00
parent 0e41b9e8e3
commit 4ba0ce11d4
2 changed files with 13 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ func LoggerMiddleware(next http.Handler) http.Handler {
return http.HandlerFunc(
func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
next.ServeHTTP(w, r)
logger.Info.Printf("%s %s %s", r.Method, r.RequestURI, time.Since(start))
next.ServeHTTP(w, r)
})
}