🎨 Change the api handler name of listing notifications

This commit is contained in:
LittleSheep 2025-03-03 20:54:53 +08:00
parent 53d856c7a7
commit 0c0164c2e8
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ func MapControllers(app *fiber.App, baseURL string) {
notify := api.Group("/notifications").Name("Notifications API")
{
notify.Get("/", getNotifications)
notify.Get("/", listNotification)
notify.Get("/count", getNotificationCount)
notify.Get("/subscription", getNotifySubscriber)
notify.Post("/subscription", addNotifySubscriber)

View File

@ -12,7 +12,7 @@ import (
"github.com/samber/lo"
)
func getNotifications(c *fiber.Ctx) error {
func listNotification(c *fiber.Ctx) error {
take := c.QueryInt("take", 0)
offset := c.QueryInt("offset", 0)