add middlewares package
This commit is contained in:
parent
ed7d587990
commit
7bea159f2b
2 changed files with 3 additions and 2 deletions
3
main.go
3
main.go
|
@ -7,6 +7,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"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"
|
||||||
)
|
)
|
||||||
|
@ -34,7 +35,7 @@ func run() error {
|
||||||
address = ":3000"
|
address = ":3000"
|
||||||
}
|
}
|
||||||
|
|
||||||
err = http.ListenAndServe(address, routes.Logger(mux))
|
err = http.ListenAndServe(address, middlewares.Logger(mux))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package routes
|
package middlewares
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
Loading…
Reference in a new issue