mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
b1a80f8ed8
@uberbrady can finally get out of the sea
28 lines
700 B
PHP
28 lines
700 B
PHP
<?php
|
|
/*
|
|
* Custom Fields Routes
|
|
*/
|
|
|
|
|
|
|
|
Route::group([ 'prefix' => 'fields' ], function () {
|
|
|
|
Route::get('{field_id}/fieldset/{fieldset_id}/disassociate',
|
|
['uses' => 'CustomFieldsController@deleteFieldFromFieldset',
|
|
'as' => 'fields.disassociate']
|
|
);
|
|
|
|
Route::post('fieldsets/{id}/associate',
|
|
['uses' => 'CustomFieldsetsController@associate',
|
|
'as' => 'fieldsets.associate']
|
|
);
|
|
|
|
Route::resource('fieldsets', 'CustomFieldsetsController', [
|
|
'parameters' => ['fieldset' => 'field_id', 'field' => 'field_id']
|
|
]);
|
|
});
|
|
|
|
Route::resource('fields', 'CustomFieldsController', [
|
|
'parameters' => ['field' => 'field_id', 'fieldset' => 'fieldset_id']
|
|
]);
|