Changeset View
Changeset View
Standalone View
Standalone View
src/routes/api.php
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | function () { | ||||
Route::get('users/{id}/status', 'API\V4\UsersController@status'); | Route::get('users/{id}/status', 'API\V4\UsersController@status'); | ||||
Route::apiResource('wallets', API\V4\WalletsController::class); | Route::apiResource('wallets', API\V4\WalletsController::class); | ||||
Route::get('wallets/{id}/transactions', 'API\V4\WalletsController@transactions'); | Route::get('wallets/{id}/transactions', 'API\V4\WalletsController@transactions'); | ||||
Route::get('wallets/{id}/receipts', 'API\V4\WalletsController@receipts'); | Route::get('wallets/{id}/receipts', 'API\V4\WalletsController@receipts'); | ||||
Route::get('wallets/{id}/receipts/{receipt}', 'API\V4\WalletsController@receiptDownload'); | Route::get('wallets/{id}/receipts/{receipt}', 'API\V4\WalletsController@receiptDownload'); | ||||
Route::post('payments', 'API\V4\PaymentsController@store'); | Route::post('payments', 'API\V4\PaymentsController@store'); | ||||
//Route::delete('payments', 'API\V4\PaymentsController@cancel'); | |||||
machniak: I think this should be `payments/{id}`, but you disabled this feature, right? So maybe comment… | |||||
Done Inline ActionsWe're currently passing the id as parameter (like we do for mandates), so I think it's correct as is. I commented it out for now. mollekopf: We're currently passing the id as parameter (like we do for mandates), so I think it's correct… | |||||
Route::get('payments/mandate', 'API\V4\PaymentsController@mandate'); | Route::get('payments/mandate', 'API\V4\PaymentsController@mandate'); | ||||
Route::post('payments/mandate', 'API\V4\PaymentsController@mandateCreate'); | Route::post('payments/mandate', 'API\V4\PaymentsController@mandateCreate'); | ||||
Route::put('payments/mandate', 'API\V4\PaymentsController@mandateUpdate'); | Route::put('payments/mandate', 'API\V4\PaymentsController@mandateUpdate'); | ||||
Route::delete('payments/mandate', 'API\V4\PaymentsController@mandateDelete'); | Route::delete('payments/mandate', 'API\V4\PaymentsController@mandateDelete'); | ||||
Route::get('payments/methods', 'API\V4\PaymentsController@paymentMethods'); | |||||
Route::get('payments/pending', 'API\V4\PaymentsController@payments'); | |||||
Route::get('payments/has-pending', 'API\V4\PaymentsController@hasPayments'); | |||||
Route::get('openvidu/rooms', 'API\V4\OpenViduController@index'); | Route::get('openvidu/rooms', 'API\V4\OpenViduController@index'); | ||||
Route::post('openvidu/rooms/{id}/close', 'API\V4\OpenViduController@closeRoom'); | Route::post('openvidu/rooms/{id}/close', 'API\V4\OpenViduController@closeRoom'); | ||||
Route::post('openvidu/rooms/{id}/config', 'API\V4\OpenViduController@setRoomConfig'); | Route::post('openvidu/rooms/{id}/config', 'API\V4\OpenViduController@setRoomConfig'); | ||||
// FIXME: I'm not sure about this one, should we use DELETE request maybe? | // FIXME: I'm not sure about this one, should we use DELETE request maybe? | ||||
Route::post('openvidu/rooms/{id}/connections/{conn}/dismiss', 'API\V4\OpenViduController@dismissConnection'); | Route::post('openvidu/rooms/{id}/connections/{conn}/dismiss', 'API\V4\OpenViduController@dismissConnection'); | ||||
Route::put('openvidu/rooms/{id}/connections/{conn}', 'API\V4\OpenViduController@updateConnection'); | Route::put('openvidu/rooms/{id}/connections/{conn}', 'API\V4\OpenViduController@updateConnection'); | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |
I think this should be payments/{id}, but you disabled this feature, right? So maybe comment this out.