2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 16:21:03 +08:00
Files
panel/app/providers/route_service_provider.go
2023-07-04 01:36:32 +08:00

29 lines
575 B
Go

package providers
import (
"github.com/goravel/framework/contracts/foundation"
"github.com/goravel/framework/facades"
"panel/app/http"
"panel/routes"
)
type RouteServiceProvider struct {
}
func (receiver *RouteServiceProvider) Register(app foundation.Application) {
//Add HTTP middlewares
facades.Route().GlobalMiddleware(http.Kernel{}.Middleware()...)
}
func (receiver *RouteServiceProvider) Boot(app foundation.Application) {
receiver.configureRateLimiting()
routes.Web()
routes.Plugin()
}
func (receiver *RouteServiceProvider) configureRateLimiting() {
}