mirror of
https://github.com/flarum/framework.git
synced 2025-02-06 19:12:00 +08:00
parent
fadf87470d
commit
a26985cb0d
|
@ -43,6 +43,7 @@ class AdminServiceProvider extends AbstractServiceProvider
|
||||||
$this->app->singleton('flarum.admin.routes', function () {
|
$this->app->singleton('flarum.admin.routes', function () {
|
||||||
$routes = new RouteCollection;
|
$routes = new RouteCollection;
|
||||||
$this->populateRoutes($routes);
|
$this->populateRoutes($routes);
|
||||||
|
|
||||||
return $routes;
|
return $routes;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ class ApiServiceProvider extends AbstractServiceProvider
|
||||||
$this->app->singleton('flarum.api.routes', function () {
|
$this->app->singleton('flarum.api.routes', function () {
|
||||||
$routes = new RouteCollection;
|
$routes = new RouteCollection;
|
||||||
$this->populateRoutes($routes);
|
$this->populateRoutes($routes);
|
||||||
|
|
||||||
return $routes;
|
return $routes;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,7 @@ class ForumServiceProvider extends AbstractServiceProvider
|
||||||
$this->app->singleton('flarum.forum.routes', function () {
|
$this->app->singleton('flarum.forum.routes', function () {
|
||||||
$routes = new RouteCollection;
|
$routes = new RouteCollection;
|
||||||
$this->populateRoutes($routes);
|
$this->populateRoutes($routes);
|
||||||
|
|
||||||
return $routes;
|
return $routes;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ class UpdateServiceProvider extends AbstractServiceProvider
|
||||||
$this->app->singleton('flarum.update.routes', function () {
|
$this->app->singleton('flarum.update.routes', function () {
|
||||||
$routes = new RouteCollection;
|
$routes = new RouteCollection;
|
||||||
$this->populateRoutes($routes);
|
$this->populateRoutes($routes);
|
||||||
|
|
||||||
return $routes;
|
return $routes;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user