Merge remote-tracking branch 'origin/develop'
This commit is contained in:
commit
84710eac98
1 changed files with 23 additions and 0 deletions
|
@ -16,6 +16,20 @@ use Illuminate\Http\Request;
|
||||||
|
|
||||||
Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api'], function () {
|
Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api'], function () {
|
||||||
|
|
||||||
|
|
||||||
|
Route::get('/', function() {
|
||||||
|
|
||||||
|
return response()->json(
|
||||||
|
[
|
||||||
|
'status' => 'error',
|
||||||
|
'message' => '404 endpoint not found. This is the base URL for the API and does not return anything itself. Please check the API reference at https://snipe-it.readme.io/reference to find a valid API endpoint.',
|
||||||
|
'payload' => null,
|
||||||
|
], 404);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Route::group(['prefix' => 'account'], function () {
|
Route::group(['prefix' => 'account'], function () {
|
||||||
|
|
||||||
Route::get('requestable/hardware',
|
Route::get('requestable/hardware',
|
||||||
|
@ -990,6 +1004,15 @@ Route::group(['prefix' => 'v1','namespace' => 'Api', 'middleware' => 'auth:api']
|
||||||
|
|
||||||
}); // kits group
|
}); // kits group
|
||||||
|
|
||||||
|
Route::fallback(function(){
|
||||||
|
return response()->json(
|
||||||
|
[
|
||||||
|
'status' => 'error',
|
||||||
|
'message' => '404 endpoint not found. Please check the API reference at https://snipe-it.readme.io/reference to find a valid API endpoint.',
|
||||||
|
'payload' => null,
|
||||||
|
], 404);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue