1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-01-06 01:50:26 +00:00

Merge pull request #101 from chekoopa/tidy-up

Tidy up some more
This commit is contained in:
Timur Ismagilov 2021-10-01 20:37:38 +03:00 committed by GitHub
commit b9ce4d6cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ func handlerRobotsTxt(w http.ResponseWriter, rq *http.Request) {
file.Close() file.Close()
} }
// Handler initializes // Handler initializes and returns the HTTP router based on the configuration.
func Handler() http.Handler { func Handler() http.Handler {
router := mux.NewRouter() router := mux.NewRouter()
router.Use(func(next http.Handler) http.Handler { router.Use(func(next http.Handler) http.Handler {