tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
mm,,,,,,,
moth11.net
7 months ago
9e1ffb9d
7701c8a9
+8
-1
2 changed files
expand all
collapse all
unified
split
server
cmd
main.go
internal
handler
handler.go
+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
61
-
http.ListenAndServe(":8080", h.WithCORSAll())
61
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
90
+
91
91
+
func (h *Handler) Serve() http.Handler {
92
92
+
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
93
93
+
h.logger.Deprintf("incoming request: %s %s", r.Method, r.URL.Path)
94
94
+
h.router.ServeHTTP(w, r)
95
95
+
})
96
96
+
}