Skip to content

Commit

Permalink
move route out to where it bypasses csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Jul 11, 2022
1 parent 4d66f7f commit e9aeb8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions routes/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
});
}

Route::prefix(config('statamic.routes.action'))->post('nocache', '\Statamic\StaticCaching\NoCache\Controller');

Route::middleware(config('statamic.routes.middleware', 'web'))
->namespace('Statamic\Http\Controllers')
->group(__DIR__.'/web.php');
2 changes: 0 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
Statamic::additionalActionRoutes();
});

Route::prefix(config('statamic.routes.action'))->post('nocache', '\Statamic\StaticCaching\NoCache\Controller');

if (OAuth::enabled()) {
Route::get(config('statamic.oauth.routes.login'), 'OAuthController@redirectToProvider')->name('oauth.login');
Route::get(config('statamic.oauth.routes.callback'), 'OAuthController@handleProviderCallback')->name('oauth.callback');
Expand Down

0 comments on commit e9aeb8f

Please sign in to comment.