Skip to content

Commit

Permalink
API: Provide forum info under /
Browse files Browse the repository at this point in the history
Closes #875.
  • Loading branch information
franzliedke committed Feb 11, 2018
1 parent 160493e commit f0cea11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/lib/models/Forum.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import Model from 'flarum/Model';

export default class Forum extends Model {
apiEndpoint() {
return '/forum';
return '/';
}
}
2 changes: 1 addition & 1 deletion src/Api/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
return function (RouteCollection $map, RouteHandlerFactory $route) {
// Get forum information
$map->get(
'/forum',
'/',
'forum.show',
$route->toController(Controller\ShowForumController::class)
);
Expand Down

0 comments on commit f0cea11

Please sign in to comment.