mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -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');
|
||||
|
||||
});
|
||||
});
|
||||
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',
|
||||
|
@ -274,7 +287,7 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
|||
]
|
||||
)->name('api.consumables.showUsers');
|
||||
|
||||
Route::get('{consumable}/checkout',
|
||||
Route::post('{consumable}/checkout',
|
||||
[
|
||||
Api\ConsumablesController::class,
|
||||
'checkout'
|
||||
|
|
Loading…
Reference in a new issue