refactor: move handler register to apps

This commit is contained in:
Jon Lundy
2022-08-19 13:57:07 -06:00
parent 814c974e93
commit 0a964cb631
5 changed files with 43 additions and 88 deletions

View File

@@ -69,6 +69,9 @@ func (s *service) BaseURL() string {
}
return s.baseURL
}
func(s *service) RegisterHTTP(mux *http.ServeMux) {
mux.Handle("/.well-known/salty/", logz.Htrace(s, "lookup"))
}
func (s *service) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
ctx, span := logz.Span(ctx)