Remove unnecessary type casting
This commit is contained in:
parent
6c05930444
commit
8c1975b70f
1 changed files with 2 additions and 2 deletions
4
app.go
4
app.go
|
|
@ -86,9 +86,9 @@ func FileServer(r chi.Router, path string, root http.FileSystem) {
|
||||||
}
|
}
|
||||||
path += "*"
|
path += "*"
|
||||||
|
|
||||||
r.Get(path, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
r.Get(path, func(w http.ResponseWriter, r *http.Request) {
|
||||||
fs.ServeHTTP(w, r)
|
fs.ServeHTTP(w, r)
|
||||||
}))
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func InjectLogger(next http.Handler) http.Handler {
|
func InjectLogger(next http.Handler) http.Handler {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue