wip: client api with net/http poc

This commit is contained in:
2025-05-29 21:22:28 +01:00
parent 5c189046d3
commit 3add628087
7 changed files with 148 additions and 19 deletions
+12
View File
@@ -0,0 +1,12 @@
package api
import "net/http"
func ClientRoutes(api *APIWrapper) (*http.ServeMux) {
mux := http.NewServeMux()
mux.HandleFunc("GET /", api.GetClientsHandler)
mux.HandleFunc("POST /", api.CreateClientHandler)
return mux
}