register(Provider::class), (new Flarum\Frontend('forum')) ->js(__DIR__.'/js/dist/forum.js'), (new Flarum\Frontend('admin')) ->js(__DIR__.'/js/dist/admin.js'), (new Flarum\Locales(__DIR__.'/resources/locale')), (new Flarum\Routes('api')) ->get('/blomstra/search/{type}', 'blomstra.search', Api\Controllers\SearchController::class) ->put('/blomstra/search/index', 'blomstra.search.index', Api\Controllers\IndexController::class), (new Flarum\Console) ->command(Commands\BuildCommand::class), (new Flarum\Settings) ->default('blomstra-search.search-discussion-subjects', true) ->default('blomstra-search.search-post-bodies', true) ->default('blomstra-search.match-sentences', true) ->default('blomstra-search.match-words', true) ];