Add new chart API endpoints.

This commit is contained in:
James Cole
2019-01-26 12:11:45 +01:00
parent 606ff3ed00
commit 7144798377

View File

@@ -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']);
}
);