|
|
@@ -89,6 +89,17 @@ func RegisterHandlers(db *db.DB) http.Handler {
|
|
|
}
|
|
|
return c.JSON(http.StatusOK, tags)
|
|
|
})
|
|
|
+ apiGroup.GET("/v1/example/client/types", func(c echo.Context) error {
|
|
|
+ tags := []string{
|
|
|
+ "Физ",
|
|
|
+ "Юр",
|
|
|
+ "Поставщик",
|
|
|
+ "Сотрудник",
|
|
|
+ "Контрагент",
|
|
|
+ "Покупатель",
|
|
|
+ }
|
|
|
+ return c.JSON(http.StatusOK, tags)
|
|
|
+ })
|
|
|
|
|
|
apiGroup.GET("/v1/example/users", func(c echo.Context) error {
|
|
|
limit, _ := strconv.Atoi(c.QueryParam("limit"))
|