Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
StevyMarlino committed Oct 24, 2024
2 parents 9237a2f + ba6b2f3 commit 62c4b61
Show file tree
Hide file tree
Showing 11 changed files with 177 additions and 197 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 🪄 Setup
uses: ./.github/actions/setup
- name: 🔮 Install Composer Dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 🪄 Setup
uses: ./.github/actions/setup
- name: 🔮 Install Composer Dependencies
Expand All @@ -40,7 +40,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: 👀 Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 🪄 Setup
uses: ./.github/actions/setup
- name: 🕵️‍♂️ Run Composer Validate
Expand Down
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

0 comments on commit 62c4b61

Please sign in to comment.