db parameter

This commit is contained in:
Nazar Kanaev
2020-09-18 21:21:54 +01:00
parent 1d977c543a
commit 65ddfc297d
3 changed files with 13 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ func (h *Handler) Start() {
h.startJobs()
s := &http.Server{Addr: h.Addr, Handler: h}
s.ListenAndServe()
}
}
func (h Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
route, vars := getRoute(req)