mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
fixes component routes
This commit is contained in:
parent
0c4c4fc352
commit
377c0e7075
|
@ -236,7 +236,20 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
]
|
]
|
||||||
)->name('api.components.assets');
|
)->name('api.components.assets');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Route::post('components/{id}/checkin',
|
||||||
|
[
|
||||||
|
Api\ComponentsController::class,
|
||||||
|
'checkin'
|
||||||
|
]
|
||||||
|
)->name('api.components.checkin');
|
||||||
|
|
||||||
|
Route::post('components/{id}/checkout',
|
||||||
|
[
|
||||||
|
Api\ComponentsController::class,
|
||||||
|
'checkout'
|
||||||
|
]
|
||||||
|
)->name('api.components.checkout');
|
||||||
|
|
||||||
|
|
||||||
Route::resource('components',
|
Route::resource('components',
|
||||||
|
@ -274,7 +287,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
]
|
]
|
||||||
)->name('api.consumables.showUsers');
|
)->name('api.consumables.showUsers');
|
||||||
|
|
||||||
Route::get('{consumable}/checkout',
|
Route::post('{consumable}/checkout',
|
||||||
[
|
[
|
||||||
Api\ConsumablesController::class,
|
Api\ConsumablesController::class,
|
||||||
'checkout'
|
'checkout'
|
||||||
|
|
Loading…
Reference in a new issue