feat: Access Logging on the user server

Closes: #98

Co-authored-by: Roberto Abdelkader Martínez Pérez <robertomartinezp@gmail.com>
This commit is contained in:
pancho horrillo
2020-12-16 17:51:22 +01:00
parent 41be4f9344
commit 4d05223224
7 changed files with 93 additions and 4 deletions
@@ -42,6 +42,8 @@ func handleRouteIDToBody(route model.Route) http.Handler {
func TestGorillizeReturnsAnEmptyMuxWhenAnEmptyRouteList(t *testing.T) {
m := gorillize([]model.Route{}, handlerStatusOK)
m.NotFoundHandler = nil
m.MethodNotAllowedHandler = nil
if !reflect.DeepEqual(*m, *mux.NewRouter()) {
t.Error("Returned mux not empty")