test expose style

This commit is contained in:
pakintada@gmail.com 2024-02-09 17:02:02 +07:00
parent 8f09e50172
commit c9fd7baf9d
5 changed files with 25 additions and 13 deletions

View file

@ -142,6 +142,8 @@ func (s *Server) createHandler() {
})
// routers.NewToppingRouter(s.data, s.taoLogger).Route(r)
r.NotFound(func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", "application/json")
w.WriteHeader(http.StatusNotFound)