Better index for accounts.

This commit is contained in:
James Cole
2024-03-06 19:54:09 +01:00
parent fd2edf3b23
commit 930a08ec90
8 changed files with 161 additions and 235 deletions

View File

@@ -104,6 +104,7 @@ Route::group(
'as' => 'api.v2.accounts.',
],
static function (): void {
Route::get('', ['uses' => 'IndexController@index', 'as' => 'show']);
Route::get('{account}', ['uses' => 'ShowController@show', 'as' => 'show']);
}
);
@@ -172,18 +173,6 @@ Route::group(
}
);
// infinite accounts list:
Route::group(
[
'namespace' => 'FireflyIII\Api\V2\Controllers\Model\Account',
'prefix' => 'v2/infinite/accounts',
'as' => 'api.v2.infinite.accounts.',
],
static function (): void {
Route::get('', ['uses' => 'IndexController@infiniteList', 'as' => 'list']);
}
);
// V2 API route for budgets and budget limits:
Route::group(
[