diff --git a/framework/core/js/lib/models/Forum.js b/framework/core/js/lib/models/Forum.js index 2898b170b..e6c02cd77 100644 --- a/framework/core/js/lib/models/Forum.js +++ b/framework/core/js/lib/models/Forum.js @@ -2,6 +2,6 @@ import Model from 'flarum/Model'; export default class Forum extends Model { apiEndpoint() { - return '/forum'; + return '/'; } } diff --git a/framework/core/src/Api/routes.php b/framework/core/src/Api/routes.php index b83c57ea9..c532f7e03 100644 --- a/framework/core/src/Api/routes.php +++ b/framework/core/src/Api/routes.php @@ -16,7 +16,7 @@ use Flarum\Http\RouteHandlerFactory; return function (RouteCollection $map, RouteHandlerFactory $route) { // Get forum information $map->get( - '/forum', + '/', 'forum.show', $route->toController(Controller\ShowForumController::class) );