remove middlewars package
This commit is contained in:
parent
f8e7746f6c
commit
20b9ab47c5
2 changed files with 2 additions and 3 deletions
3
main.go
3
main.go
|
@ -8,7 +8,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.1e99.eu/1e99/passed/config"
|
"git.1e99.eu/1e99/passed/config"
|
||||||
"git.1e99.eu/1e99/passed/middlewares"
|
|
||||||
"git.1e99.eu/1e99/passed/routes"
|
"git.1e99.eu/1e99/passed/routes"
|
||||||
"git.1e99.eu/1e99/passed/storage"
|
"git.1e99.eu/1e99/passed/storage"
|
||||||
)
|
)
|
||||||
|
@ -38,7 +37,7 @@ func run() error {
|
||||||
mux.Handle("HEAD /api/password/{id}", routes.HasPassword(store))
|
mux.Handle("HEAD /api/password/{id}", routes.HasPassword(store))
|
||||||
|
|
||||||
if logRequests {
|
if logRequests {
|
||||||
handler = middlewares.Logger(handler)
|
handler = routes.Logger(handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("Listening on %s.", address)
|
log.Printf("Listening on %s.", address)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package middlewares
|
package routes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
Loading…
Reference in a new issue