%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/api/routes/api/v1/
Upload File :
Create Path :
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');

});

Zerion Mini Shell 1.0