mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-08-28 17:07:21 +00:00
Add new chart API endpoints.
This commit is contained in:
@@ -138,7 +138,7 @@ Route::group(
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// CHART ROUTES
|
||||
Route::group(
|
||||
['middleware' => ['auth:api', 'bindings'], 'namespace' => 'FireflyIII\Api\V1\Controllers\Chart', 'prefix' => 'chart/account',
|
||||
'as' => 'api.v1.chart.account.'],
|
||||
@@ -150,6 +150,16 @@ Route::group(
|
||||
}
|
||||
);
|
||||
|
||||
Route::group(
|
||||
['middleware' => ['auth:api', 'bindings'], 'namespace' => 'FireflyIII\Api\V1\Controllers\Chart', 'prefix' => 'chart/ab',
|
||||
'as' => 'api.v1.chart.ab.'],
|
||||
function () {
|
||||
|
||||
// Overview API routes:
|
||||
Route::get('overview/{availableBudget}', ['uses' => 'AvailableBudgetController@overview', 'as' => 'overview']);
|
||||
}
|
||||
);
|
||||
|
||||
Route::group(
|
||||
['middleware' => ['auth:api', 'bindings'], 'namespace' => 'FireflyIII\Api\V1\Controllers', 'prefix' => 'configuration', 'as' => 'api.v1.configuration.'],
|
||||
function () {
|
||||
@@ -228,6 +238,7 @@ Route::group(
|
||||
|
||||
// Preference API routes:
|
||||
Route::get('', ['uses' => 'PreferenceController@index', 'as' => 'index']);
|
||||
Route::get('{preference}', ['uses' => 'PreferenceController@show', 'as' => 'show']);
|
||||
Route::put('{preference}', ['uses' => 'PreferenceController@update', 'as' => 'update']);
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user