Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions app/Console/Commands/GenerateSitemap.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ final class GenerateSitemap extends Command
* @var array|string[]
*/
private array $noIndexPaths = [
'',
'/forum/*',
'/forum/channels',
'/forum/channels/*',
'/user',
'/user/*',
'/dashboard/*',
'/rules',
'/terms',
'/privacy',
'/faq',
'/auth/github',
];

public function handle(): void
Expand Down
11 changes: 0 additions & 11 deletions app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,10 @@ public function boot(): void
$this->routeBindings();

$this->routes(function (): void {
// Route::prefix('api')
// ->middleware('api')
// ->namespace($this->namespace)
// ->group(base_path('routes/api.php'));

Route::middleware('web')
->namespace($this->namespace)
->group(base_path('routes/web.php'));
});

Route::macro('redirectMap', function (array $map, int $status = 302): void {
foreach ($map as $old => $new) {
Route::redirect($old, $new, $status)->name($old);
}
});
}

protected function configureRateLimiting(): void
Expand Down
Loading
Loading