mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-01-23 14:48:36 +01:00
Fix DELETE route for Passport Personal access token
This commit is contained in:
parent
d6306e5dd0
commit
c9dee47be3
@ -13,14 +13,6 @@
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::group(['middleware' => 'auth:api'], function () {
|
|
||||||
|
|
||||||
Route::get('oauth/personal-access-tokens', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@forUser')->name('passport.personal.tokens.index');
|
|
||||||
Route::post('oauth/personal-access-tokens', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@store')->name('passport.personal.tokens.store');
|
|
||||||
Route::delete('oauth/personal-access-tokens', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@destroy')->name('passport.personal.tokens.destroy');
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::group(['middleware' => 'guest:api'], function () {
|
Route::group(['middleware' => 'guest:api'], function () {
|
||||||
|
|
||||||
Route::get('user/name', 'Auth\UserController@show')->name('user.show.name');
|
Route::get('user/name', 'Auth\UserController@show')->name('user.show.name');
|
||||||
@ -32,6 +24,10 @@
|
|||||||
|
|
||||||
Route::group(['middleware' => 'auth:api'], function() {
|
Route::group(['middleware' => 'auth:api'], function() {
|
||||||
|
|
||||||
|
Route::get('oauth/personal-access-tokens', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@forUser')->name('passport.personal.tokens.index');
|
||||||
|
Route::post('oauth/personal-access-tokens', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@store')->name('passport.personal.tokens.store');
|
||||||
|
Route::delete('oauth/personal-access-tokens/{token_id}', '\Laravel\Passport\Http\Controllers\PersonalAccessTokenController@destroy')->name('passport.personal.tokens.destroy');
|
||||||
|
|
||||||
Route::get('user', 'Auth\UserController@show')->name('user.show');
|
Route::get('user', 'Auth\UserController@show')->name('user.show');
|
||||||
Route::put('user', 'Auth\UserController@update')->name('user.update');
|
Route::put('user', 'Auth\UserController@update')->name('user.update');
|
||||||
Route::patch('user/password', 'Auth\PasswordController@update')->name('user.password.update');
|
Route::patch('user/password', 'Auth\PasswordController@update')->name('user.password.update');
|
||||||
|
Loading…
Reference in New Issue
Block a user