2023-11-02 02:49:07 +08:00
|
|
|
package route
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gofiber/fiber/v2"
|
2023-11-02 23:35:05 +08:00
|
|
|
"iptables-helper/internel/controller"
|
2023-11-02 02:49:07 +08:00
|
|
|
"iptables-helper/pkg/config"
|
|
|
|
)
|
|
|
|
|
|
|
|
func SetupRoute(app *fiber.App, conf *config.Conf) {
|
|
|
|
if conf.Server.EnableSwag {
|
|
|
|
SwaggerHandler(app)
|
|
|
|
}
|
2023-11-02 23:35:05 +08:00
|
|
|
|
|
|
|
controller.SetupController(app)
|
2023-11-02 02:49:07 +08:00
|
|
|
}
|