Changeset View
Changeset View
Standalone View
Standalone View
src/routes/api.php
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | function () { | ||||
Route::post('companion/register', 'API\V4\CompanionAppsController@register'); | Route::post('companion/register', 'API\V4\CompanionAppsController@register'); | ||||
Route::post('auth-attempts/{id}/confirm', 'API\V4\AuthAttemptsController@confirm'); | Route::post('auth-attempts/{id}/confirm', 'API\V4\AuthAttemptsController@confirm'); | ||||
Route::post('auth-attempts/{id}/deny', 'API\V4\AuthAttemptsController@deny'); | Route::post('auth-attempts/{id}/deny', 'API\V4\AuthAttemptsController@deny'); | ||||
Route::get('auth-attempts/{id}/details', 'API\V4\AuthAttemptsController@details'); | Route::get('auth-attempts/{id}/details', 'API\V4\AuthAttemptsController@details'); | ||||
Route::get('auth-attempts', 'API\V4\AuthAttemptsController@index'); | Route::get('auth-attempts', 'API\V4\AuthAttemptsController@index'); | ||||
Route::apiResource('domains', API\V4\DomainsController::class); | Route::apiResource('domains', API\V4\DomainsController::class); | ||||
Route::get('domains/{id}/confirm', 'API\V4\DomainsController@confirm'); | Route::get('domains/{id}/confirm', 'API\V4\DomainsController@confirm'); | ||||
machniak: I'd move this line, one line up | |||||
Done Inline ActionsWe can't because registering 'companion/pairing' after the resource will not work (it returns a 404). Doing it this way around works though. mollekopf: We can't because registering 'companion/pairing' after the resource will not work (it returns a… | |||||
Route::get('domains/{id}/skus', 'API\V4\SkusController@domainSkus'); | Route::get('domains/{id}/skus', 'API\V4\SkusController@domainSkus'); | ||||
Route::get('domains/{id}/status', 'API\V4\DomainsController@status'); | Route::get('domains/{id}/status', 'API\V4\DomainsController@status'); | ||||
Route::post('domains/{id}/config', 'API\V4\DomainsController@setConfig'); | Route::post('domains/{id}/config', 'API\V4\DomainsController@setConfig'); | ||||
Route::apiResource('groups', API\V4\GroupsController::class); | Route::apiResource('groups', API\V4\GroupsController::class); | ||||
Route::get('groups/{id}/status', 'API\V4\GroupsController@status'); | Route::get('groups/{id}/status', 'API\V4\GroupsController@status'); | ||||
Route::post('groups/{id}/config', 'API\V4\GroupsController@setConfig'); | Route::post('groups/{id}/config', 'API\V4\GroupsController@setConfig'); | ||||
Show All 17 Lines | function () { | ||||
//Route::delete('payments', 'API\V4\PaymentsController@cancel'); | //Route::delete('payments', 'API\V4\PaymentsController@cancel'); | ||||
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/methods', 'API\V4\PaymentsController@paymentMethods'); | ||||
Route::get('payments/pending', 'API\V4\PaymentsController@payments'); | Route::get('payments/pending', 'API\V4\PaymentsController@payments'); | ||||
Route::get('payments/has-pending', 'API\V4\PaymentsController@hasPayments'); | Route::get('payments/has-pending', 'API\V4\PaymentsController@hasPayments'); | ||||
Route::apiResource('companion', API\V4\CompanionAppsController::class); | |||||
} | } | ||||
); | ); | ||||
// Note: In Laravel 7.x we could just use withoutMiddleware() instead of a separate group | // Note: In Laravel 7.x we could just use withoutMiddleware() instead of a separate group | ||||
Route::group( | Route::group( | ||||
[ | [ | ||||
'domain' => \config('app.website_domain'), | 'domain' => \config('app.website_domain'), | ||||
'prefix' => $prefix . 'api/v4' | 'prefix' => $prefix . 'api/v4' | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |
I'd move this line, one line up