diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-02 16:05:53 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-02 16:05:53 -0600 |
| commit | a3d5ee1225e2ce0b6cf3b90525a6876ca8f5ef8c (patch) | |
| tree | 429faf79855a2614b4c18bb286f94f474caf7e5c /pkg/rpc/server.go | |
| parent | 649b71d7fd2d6768460a37ed0d9e6ce7a1202a4f (diff) | |
refactor: connect logging to http requests
Diffstat (limited to 'pkg/rpc/server.go')
| -rw-r--r-- | pkg/rpc/server.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/rpc/server.go b/pkg/rpc/server.go deleted file mode 100644 index a71ed8ca..00000000 --- a/pkg/rpc/server.go +++ /dev/null @@ -1,25 +0,0 @@ -package rpc - -import ( - fmt "fmt" - http "net/http" -) - -func New() http.Handler { - mux := http.NewServeMux() - for _, handler := range handlers() { - fmt.Printf("Registering : %v\n", handler.PathPrefix()) - mux.Handle(handler.PathPrefix(), handler) - } - - mux.Handle("/health", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) - })) - return mux -} - -func handlers() []TwirpServer { - return []TwirpServer{ - NewAbilityServer(NewAbilityService()), - } -} |
