🎨 Change the api handler name of listing notifications
This commit is contained in:
parent
53d856c7a7
commit
0c0164c2e8
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user