mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Expand account list
This commit is contained in:
@@ -172,8 +172,19 @@ 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:
|
||||
// TODO Validate from here down.
|
||||
Route::group(
|
||||
[
|
||||
'namespace' => 'FireflyIII\Api\V2\Controllers\Model',
|
||||
|
@@ -1204,11 +1204,11 @@ Route::group(
|
||||
// show groups:
|
||||
// TODO improve these routes
|
||||
Route::get('{what}/all', ['uses' => 'Transaction\IndexController@indexAll', 'as' => 'index.all'])->where(
|
||||
['what' => 'withdrawal|deposit|transfers|transfer']
|
||||
['what' => 'withdrawal|deposit|transfers|transfer|all']
|
||||
);
|
||||
|
||||
Route::get('{what}/{start_date?}/{end_date?}', ['uses' => 'Transaction\IndexController@index', 'as' => 'index'])->where(
|
||||
['what' => 'withdrawal|deposit|transfers|transfer']
|
||||
['what' => 'withdrawal|deposit|transfers|transfer|all']
|
||||
)->where(['start_date' => DATEFORMAT])
|
||||
->where(['end_date' => DATEFORMAT])
|
||||
;
|
||||
|
Reference in New Issue
Block a user