mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
50 lines
1.5 KiB
PHP
50 lines
1.5 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', [
|
|
'as' => 'licenses.checkout',
|
|
'uses' => 'LicensesController@getCheckout'
|
|
]);
|
|
Route::post(
|
|
'{licenseId}/checkout',
|
|
[ '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',
|
|
'uses' => 'LicensesController@postCheckin'
|
|
]);
|
|
|
|
Route::post(
|
|
'{licenseId}/upload',
|
|
[ 'as' => 'upload/license', 'uses' => 'LicensesController@postUpload' ]
|
|
);
|
|
Route::get(
|
|
'{licenseId}/deletefile/{fileId}',
|
|
[ 'as' => 'delete/licensefile', 'uses' => 'LicensesController@getDeleteFile' ]
|
|
);
|
|
Route::get(
|
|
'{licenseId}/showfile/{fileId}',
|
|
[ 'as' => 'show/licensefile', 'uses' => 'LicensesController@displayFile' ]
|
|
);
|
|
});
|
|
|
|
Route::resource('licenses', 'LicensesController', [
|
|
'middleware' => ['auth'],
|
|
'parameters' => ['license' => 'license_id']
|
|
]);
|