generated from PenaSide/GolangTemplate
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package http
|
|
|
|
import "github.com/gofiber/fiber/v2"
|
|
|
|
func (api *API2) Register(router fiber.Router) {
|
|
router.Delete("/account", api.DeleteAccount)
|
|
router.Get("/account", api.GetAccount)
|
|
router.Patch("/account", api.ChangeAccount)
|
|
router.Post("/account", api.AddAccount)
|
|
router.Delete("/account/:userId", api.DeleteDirectAccount)
|
|
router.Get("/account/:userId", api.GetDirectAccount)
|
|
router.Patch("/account/:userId", api.SetAccountVerificationStatus)
|
|
router.Get("/accounts", api.PaginationAccounts)
|
|
router.Delete("/cart", api.RemoveFromCart)
|
|
router.Patch("/cart", api.Add2cart)
|
|
router.Post("/cart/pay", api.PayCart)
|
|
router.Get("/currencies", api.GetCurrencies)
|
|
router.Put("/currencies", api.UpdateCurrencies)
|
|
router.Get("/history", api.GetHistory)
|
|
router.Post("/history/ltv", api.CalculateLTV)
|
|
router.Post("/promocode/ltv", api.PromocodeLTV)
|
|
router.Post("/quizlogo/stat", api.QuizLogoStat)
|
|
router.Get("/recent", api.GetRecentTariffs)
|
|
router.Post("/sendReport", api.SendReport)
|
|
router.Patch("/wallet", api.ChangeCurrency)
|
|
router.Post("/wallet", api.RequestMoney)
|
|
router.Post("/wallet/rspay", api.PostWalletRspay)
|
|
}
|
|
|
|
func (api *API2) Name() string {
|
|
return ""
|
|
}
|