%PDF- %PDF-
Direktori : /var/www/html/hr/api/routes/api/v1/ |
Current File : /var/www/html/hr/api/routes/api/v1/maintenancePayments.php |
<?php use App\Models\Module; use Illuminate\Support\Facades\Route; Route::group([ 'middleware' => [ 'auth:api', 'role:ADMIN|FINANCE', 'module:' . Module::MAINTENANCE_PAYMENTS_MODULE, ], ], function () { Route::resource('maintenancePayments', 'MaintenancePaymentsController') ->only([ 'index', 'show', 'store', 'update', ]); Route::get('maintenancePayments/{payment}/actions/getTransactions', 'MaintenancePaymentsController@getTransactions') ->name('api.v1.maintenancePayments.actions.getTransactions'); Route::post('maintenancePayments/{payment}/actions/paymentReceived', 'MaintenancePaymentsController@paymentReceived') ->name('api.v1.maintenancePayments.actions.paymentReceived'); Route::delete('maintenancePayments/{payment}/actions/cancel', 'MaintenancePaymentsController@cancel') ->name('api.v1.maintenancePayments.actions.cancel'); });