customer/internal/interface/controller/http/account/route.go

19 lines
632 B
Go
Raw Normal View History

package account
import "github.com/gofiber/fiber/v2"
func (receiver *AccountController) Register(router fiber.Router) {
router.Delete("/account", receiver.DeleteAccount)
router.Get("/account", receiver.GetAccount)
router.Patch("/account", receiver.ChangeAccount)
router.Post("/account", receiver.AddAccount)
router.Delete("/account/:userId", receiver.DeleteDirectAccount)
router.Get("/account/:userId", receiver.GetDirectAccount)
router.Patch("/account/:userId", receiver.SetAccountVerificationStatus)
router.Get("/accounts", receiver.PaginationAccounts)
}
func (receiver *AccountController) Name() string {
return ""
}