add middlewares package

This commit is contained in:
1e99 2024-10-30 10:24:41 +01:00
parent ed7d587990
commit 7bea159f2b
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import (
"net/http"
"os"
"git.1e99.eu/1e99/passed/middlewares"
"git.1e99.eu/1e99/passed/routes"
"git.1e99.eu/1e99/passed/storage"
)
@ -34,7 +35,7 @@ func run() error {
address = ":3000"
}
err = http.ListenAndServe(address, routes.Logger(mux))
err = http.ListenAndServe(address, middlewares.Logger(mux))
if err != nil {
return err
}

View file

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