mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
wip: client api with net/http poc
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user