0xc3 4 semanas atrás
pai
commit
4b264f5cf8
1 arquivos alterados com 11 adições e 0 exclusões
  1. 11 0
      src/server/server.go

+ 11 - 0
src/server/server.go

@@ -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"))