telegram-bot-manager/routers/router/router.go

21 lines
423 B
Go

package router
import (
"jannex/telegram-bot-manager/routers/api/v1/notification"
"jannex/telegram-bot-manager/routers/api/v1/verifycode"
"github.com/gofiber/fiber/v2"
)
func SetupRoutes(app *fiber.App) {
v1 := app.Group("/v1")
vc := v1.Group("/verifycode")
vc.Get("/:userId", verifycode.GetVerifyCode)
n := v1.Group("/notification")
n.Post("/", notification.SendNotification)
app.Static("/", "./public/")
}