remove middlewars package

This commit is contained in:
1e99 2024-11-09 12:59:42 +01:00
parent f8e7746f6c
commit 20b9ab47c5
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
package middlewares
package routes
import (
"log"