update after pagination tests
This commit is contained in:
parent
3aa4402e74
commit
3cca7e9363
@ -47,7 +47,7 @@ func (c *Controller) Register(router fiber.Router) {
|
||||
router.Patch("/rules/:quizID", c.ChangeQuizSettings)
|
||||
router.Post("/rules/:quizID", c.SetQuizSettings)
|
||||
router.Get("/rules/:quizID", c.GettingQuizRules)
|
||||
router.Get("/tags", c.GettingTagsFromCash)
|
||||
router.Get("/tags", c.GetTagsWithPagination)
|
||||
router.Patch("/tags", c.UpdateListTags)
|
||||
router.Get("/fields", c.GetFieldsWithPagination)
|
||||
router.Patch("/fields", c.UpdateListCustom)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/middleware"
|
||||
)
|
||||
|
||||
func (c *Controller) GettingTagsFromCash(ctx *fiber.Ctx) error {
|
||||
func (c *Controller) GetTagsWithPagination(ctx *fiber.Ctx) error {
|
||||
accountID, ok := middleware.GetAccountId(ctx)
|
||||
if !ok {
|
||||
return ctx.Status(fiber.StatusUnauthorized).SendString("account id is required")
|
||||
|
Loading…
Reference in New Issue
Block a user