backend for xcvr appview

mm,,,,,,,

+8 -1
+1 -1
server/cmd/main.go
··· 58 58 } 59 59 h := handler.New(store, logger, oauthclient, xrpc, model) 60 60 go consumeLoop(context.Background(), store, logger, xrpc) 61 - http.ListenAndServe(":8080", h.WithCORSAll()) 61 + http.ListenAndServe(":8080", h.Serve()) 62 62 63 63 } 64 64
+7
server/internal/handler/handler.go
··· 87 87 h.router.ServeHTTP(w, r) 88 88 }) 89 89 } 90 + 91 + func (h *Handler) Serve() http.Handler { 92 + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 93 + h.logger.Deprintf("incoming request: %s %s", r.Method, r.URL.Path) 94 + h.router.ServeHTTP(w, r) 95 + }) 96 + }