|
|
@@ -82,6 +82,13 @@ func RegisterHandlers(db *db.DB) http.Handler {
|
|
|
apiGroup.DELETE("/v1/example/client", func(c echo.Context) error {
|
|
|
return c.JSON(http.StatusOK, "")
|
|
|
})
|
|
|
+ apiGroup.GET("/v1/example/client/tags", func(c echo.Context) error {
|
|
|
+ tags := []string{
|
|
|
+ "vip",
|
|
|
+ "ban",
|
|
|
+ }
|
|
|
+ return c.JSON(http.StatusOK, tags)
|
|
|
+ })
|
|
|
|
|
|
apiGroup.GET("/v1/example/users", func(c echo.Context) error {
|
|
|
limit, _ := strconv.Atoi(c.QueryParam("limit"))
|