mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Remove Middleware suffix
This commit is contained in:
parent
f2fe0a2e1d
commit
b4f3148e30
|
@ -4,7 +4,7 @@ use Flarum\Core\Models\AccessToken;
|
|||
use Flarum\Core\Support\Actor;
|
||||
use Closure;
|
||||
|
||||
class LoginWithHeaderMiddleware
|
||||
class LoginWithHeader
|
||||
{
|
||||
protected $actor;
|
||||
|
|
@ -9,7 +9,7 @@ $action = function ($class) {
|
|||
};
|
||||
};
|
||||
|
||||
Route::group(['prefix' => 'api', 'middleware' => 'Flarum\Api\Middleware\LoginWithHeaderMiddleware'], function () use ($action) {
|
||||
Route::group(['prefix' => 'api', 'middleware' => 'Flarum\Api\Middleware\LoginWithHeader'], function () use ($action) {
|
||||
|
||||
Route::post('token', [
|
||||
'as' => 'flarum.api.token',
|
||||
|
|
|
@ -5,7 +5,7 @@ use Flarum\Core\Models\AccessToken;
|
|||
use Auth;
|
||||
use Closure;
|
||||
|
||||
class LoginWithCookieMiddleware
|
||||
class LoginWithCookie
|
||||
{
|
||||
protected $actor;
|
||||
|
|
@ -9,7 +9,7 @@ $action = function ($class) {
|
|||
};
|
||||
};
|
||||
|
||||
Route::group(['middleware' => 'Flarum\Web\Middleware\LoginWithCookieMiddleware'], function () use ($action) {
|
||||
Route::group(['middleware' => 'Flarum\Web\Middleware\LoginWithCookie'], function () use ($action) {
|
||||
|
||||
Route::get('/', [
|
||||
'as' => 'flarum.index',
|
||||
|
|
Loading…
Reference in New Issue
Block a user