sk-matrix-project/backend/golang/matrix-middle-service/internel/route/route.go
2023-03-16 11:24:27 +08:00

17 lines
368 B
Go

package route
import (
"github.com/gofiber/fiber/v2"
"matrix-middle-service/internel/controller/bot"
"matrix-middle-service/internel/controller/record"
"matrix-middle-service/pkg/config"
)
func SetupRoute(app *fiber.App, conf *config.Conf) {
if conf.Server.EnableSwag {
SwaggerHandler(app)
}
bot.SetupBotController(app)
record.SetupRecordController(app)
}