mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
50 lines
1.6 KiB
PHP
50 lines
1.6 KiB
PHP
<?php
|
|
|
|
|
|
# Licenses
|
|
Route::group([ 'prefix' => 'licenses', 'middleware' => ['auth'] ], function () {
|
|
|
|
Route::get('{licenseId}/clone', [ 'as' => 'clone/license', 'uses' => 'LicensesController@getClone' ]);
|
|
Route::post('{licenseId}/clone', [ 'as' => 'clone/license', 'uses' => 'LicensesController@postCreate' ]);
|
|
|
|
Route::get('{licenseId}/freecheckout', [
|
|
'as' => 'licenses.freecheckout',
|
|
'uses' => 'LicensesController@getFreeLicense'
|
|
]);
|
|
Route::get('{licenseId}/checkout/{seatId?}', [
|
|
'as' => 'licenses.checkout',
|
|
'uses' => 'LicensesController@getCheckout'
|
|
]);
|
|
Route::post(
|
|
'{licenseId}/checkout/{seatId?}',
|
|
[ 'as' => 'licenses.checkout', 'uses' => 'LicensesController@postCheckout' ]
|
|
);
|
|
Route::get('{licenseId}/checkin/{backto?}', [
|
|
'as' => 'licenses.checkin',
|
|
'uses' => 'LicensesController@getCheckin'
|
|
]);
|
|
|
|
Route::post('{licenseId}/checkin/{backto?}', [
|
|
'as' => 'licenses.checkin.save',
|
|
'uses' => 'LicensesController@postCheckin'
|
|
]);
|
|
|
|
Route::post(
|
|
'{licenseId}/upload',
|
|
[ 'as' => 'upload/license', 'uses' => 'LicensesController@postUpload' ]
|
|
);
|
|
Route::delete(
|
|
'{licenseId}/deletefile/{fileId}',
|
|
[ 'as' => 'delete/licensefile', 'uses' => 'LicensesController@getDeleteFile' ]
|
|
);
|
|
Route::get(
|
|
'{licenseId}/showfile/{fileId}/{download?}',
|
|
[ 'as' => 'show.licensefile', 'uses' => 'LicensesController@displayFile' ]
|
|
);
|
|
});
|
|
|
|
Route::resource('licenses', 'LicensesController', [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['license' => 'license_id']
|
|
]);
|