mirror of
https://github.com/flarum/framework.git
synced 2024-11-24 16:27:47 +08:00
parent
160493e725
commit
f0cea11e79
|
@ -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