mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
12 lines
307 B
Go
12 lines
307 B
Go
package api
|
|
|
|
func (api *API) ClientRoutes() {
|
|
group := api.instance.Group("/clients")
|
|
|
|
group.GET("/", api.GetAllClientsHandler)
|
|
group.POST("/", api.CreateClientHandler)
|
|
group.GET("/:id", api.GetClientHandler)
|
|
group.PUT("/:id", api.UpdateClientHandler)
|
|
group.DELETE("/:id", api.DeleteClientHandler)
|
|
}
|