update after pagination tests

This commit is contained in:
Pavel 2024-05-03 11:51:47 +03:00
parent 3aa4402e74
commit 3cca7e9363
2 changed files with 2 additions and 2 deletions

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