core/internal/controllers/http_controllers/telegram/route.go

15 lines
339 B
Go
Raw Normal View History

2024-10-25 15:26:03 +00:00
package telegram
import "github.com/gofiber/fiber/v2"
func (r *Telegram) Register(router fiber.Router) {
router.Get("/pool", r.GetPoolTgAccounts)
router.Post("/create", r.AddingTgAccount)
router.Delete("/:id", r.DeleteTgAccountByID)
router.Post("/setCode", r.SettingTgCode)
}
func (r *Telegram) Name() string {
return "telegram"
}