2023-02-26 02:50:56 +08:00
|
|
|
package route
|
|
|
|
|
2023-02-26 21:10:43 +08:00
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
2023-02-27 17:18:31 +08:00
|
|
|
"matrix-middle-service/internel/controller"
|
2023-02-26 21:10:43 +08:00
|
|
|
"matrix-middle-service/pkg/config"
|
|
|
|
)
|
2023-02-26 02:50:56 +08:00
|
|
|
|
2023-02-26 21:10:43 +08:00
|
|
|
func SetupRoute(app *fiber.App, conf *config.Conf) {
|
2023-02-27 14:47:33 +08:00
|
|
|
if conf.Server.EnableSwag {
|
|
|
|
SwaggerHandler(app)
|
|
|
|
}
|
2023-02-27 17:18:31 +08:00
|
|
|
|
|
|
|
controller.SetupBotController(app)
|
2023-02-26 02:50:56 +08:00
|
|
|
}
|