diff --git a/main.go b/main.go index 87458d2..ae9844b 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,6 @@ import ( "time" "git.1e99.eu/1e99/passed/config" - "git.1e99.eu/1e99/passed/middlewares" "git.1e99.eu/1e99/passed/routes" "git.1e99.eu/1e99/passed/storage" ) @@ -38,7 +37,7 @@ func run() error { mux.Handle("HEAD /api/password/{id}", routes.HasPassword(store)) if logRequests { - handler = middlewares.Logger(handler) + handler = routes.Logger(handler) } log.Printf("Listening on %s.", address) diff --git a/middlewares/logger.go b/routes/logger.go similarity index 92% rename from middlewares/logger.go rename to routes/logger.go index 32edd68..44b3a42 100644 --- a/middlewares/logger.go +++ b/routes/logger.go @@ -1,4 +1,4 @@ -package middlewares +package routes import ( "log"