mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 16:10:59 +08:00
30 lines
577 B
Go
30 lines
577 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) {
|
|
}
|
|
|
|
func (receiver *RouteServiceProvider) Boot(app foundation.Application) {
|
|
// Add HTTP middlewares
|
|
facades.Route().GlobalMiddleware(http.Kernel{}.Middleware()...)
|
|
|
|
receiver.configureRateLimiting()
|
|
|
|
routes.Api()
|
|
routes.Plugin()
|
|
}
|
|
|
|
func (receiver *RouteServiceProvider) configureRateLimiting() {
|
|
|
|
}
|