Added new route
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
a0b9714d72
commit
274b659905
1 changed files with 7 additions and 6 deletions
|
@ -711,6 +711,13 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
'assets'
|
'assets'
|
||||||
]
|
]
|
||||||
)->name('api.locations.viewassets');
|
)->name('api.locations.viewassets');
|
||||||
|
|
||||||
|
Route::get('{location}/assigned/accessories',
|
||||||
|
[
|
||||||
|
Api\LocationsController::class,
|
||||||
|
'assignedAccessories'
|
||||||
|
]
|
||||||
|
)->name('api.locations.assigned_accessories');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1289,11 +1296,5 @@ Route::group(['prefix' => 'v1', 'middleware' => ['api', 'throttle:api']], functi
|
||||||
])->name('api.assets.labels');
|
])->name('api.assets.labels');
|
||||||
// end generate label routes
|
// end generate label routes
|
||||||
|
|
||||||
Route::get('{location}/accessories/assigned',
|
|
||||||
[
|
|
||||||
Api\LocationsController::class,
|
|
||||||
'assignedAccessories'
|
|
||||||
]
|
|
||||||
)->name('api.locations.assigned_accessories');
|
|
||||||
|
|
||||||
}); // end API routes
|
}); // end API routes
|
||||||
|
|
Loading…
Add table
Reference in a new issue