Explorar o código

Update routes

Bubka %!s(int64=3) %!d(string=hai) anos
pai
achega
9a7ef19177
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      routes/api.php

+ 2 - 1
routes/api.php

@@ -37,6 +37,7 @@ Route::group(['middleware' => 'auth:api'], function() {
     });
 
     Route::delete('twofaccounts', 'TwoFAccountController@batchDestroy');
+    Route::patch('twofaccounts/withdraw', 'TwoFAccountController@withdraw');
     Route::post('twofaccounts/reorder', 'TwoFAccountController@reorder');
     Route::post('twofaccounts/preview', 'TwoFAccountController@preview');
     Route::get('twofaccounts/{twofaccount}/qrcode', 'QrCodeController@show');
@@ -44,7 +45,7 @@ Route::group(['middleware' => 'auth:api'], function() {
     Route::get('twofaccounts/{id}/otp', 'TwoFAccountController@otp')->where('id', '[0-9]+');;
     Route::post('twofaccounts/otp', 'TwoFAccountController@otp');
     Route::apiResource('twofaccounts', 'TwoFAccountController');
-    Route::patch('group/accounts', 'GroupController@associateAccounts');
+    Route::post('groups/{group}/assign', 'GroupController@assignAccounts');
     Route::apiResource('groups', 'GroupController');
 
     // Done