Changeset View
Changeset View
Standalone View
Standalone View
src/routes/api.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | function () { | ||||
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::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'); | ||||
// For now we require authenticated users | |||||
// TODO: Allow guests/external users | |||||
Route::get('meet/openvidu/{id}', 'API\V4\OpenViduController@joinOrCreate'); | |||||
} | } | ||||
); | ); | ||||
Route::group( | Route::group( | ||||
[ | [ | ||||
'domain' => \config('app.domain'), | 'domain' => \config('app.domain'), | ||||
], | ], | ||||
function () { | function () { | ||||
Route::post('webhooks/payment/{provider}', 'API\V4\PaymentsController@webhook'); | Route::post('webhooks/payment/{provider}', 'API\V4\PaymentsController@webhook'); | ||||
Route::post('webhooks/meet/openvidu', 'API\V4\OpenViduController@webhook'); | |||||
} | } | ||||
); | ); | ||||
Route::group( | Route::group( | ||||
[ | [ | ||||
'domain' => 'admin.' . \config('app.domain'), | 'domain' => 'admin.' . \config('app.domain'), | ||||
'middleware' => ['auth:api', 'admin'], | 'middleware' => ['auth:api', 'admin'], | ||||
'prefix' => 'v4', | 'prefix' => 'v4', | ||||
Show All 17 Lines |