mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
parent
b8e5dcd587
commit
93822ba4ed
|
@ -2,6 +2,6 @@ import Model from 'flarum/Model';
|
||||||
|
|
||||||
export default class Forum extends Model {
|
export default class Forum extends Model {
|
||||||
apiEndpoint() {
|
apiEndpoint() {
|
||||||
return '/forum';
|
return '/';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ use Flarum\Http\RouteHandlerFactory;
|
||||||
return function (RouteCollection $map, RouteHandlerFactory $route) {
|
return function (RouteCollection $map, RouteHandlerFactory $route) {
|
||||||
// Get forum information
|
// Get forum information
|
||||||
$map->get(
|
$map->get(
|
||||||
'/forum',
|
'/',
|
||||||
'forum.show',
|
'forum.show',
|
||||||
$route->toController(Controller\ShowForumController::class)
|
$route->toController(Controller\ShowForumController::class)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user