mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-02 02:30:28 +00:00
13 lines
228 B
Go
13 lines
228 B
Go
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
|
|
}
|