sk-matrix-project/backend/golang/matrix-middle-service/internel/route/route.go

17 lines
368 B
Go
Raw Normal View History

package route
import (
"github.com/gofiber/fiber/v2"
2023-02-28 00:03:02 +08:00
"matrix-middle-service/internel/controller/bot"
2023-03-14 19:10:45 +08:00
"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)
}
2023-02-28 00:03:02 +08:00
bot.SetupBotController(app)
2023-03-14 19:10:45 +08:00
record.SetupRecordController(app)
}