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-28 00:03:02 +08:00
|
|
|
"matrix-middle-service/internel/controller/bot"
|
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
|
|
|
|
2023-02-28 00:03:02 +08:00
|
|
|
bot.SetupBotController(app)
|
2023-02-26 02:50:56 +08:00
|
|
|
}
|