Expand API with still undocumented features

This commit is contained in:
James Cole
2020-11-27 06:13:46 +01:00
parent 11e6410d7c
commit 1b27f6143c
3 changed files with 149 additions and 18 deletions

View File

@@ -395,6 +395,7 @@ Route::group(
}
);
// destroy data route.
Route::group(
['namespace' => 'FireflyIII\Api\V1\Controllers', 'prefix' => 'data',
'as' => 'api.v1.data.',],
@@ -405,6 +406,18 @@ Route::group(
}
);
// INSIGHT
Route::group(
['namespace' => 'FireflyIII\Api\V1\Controllers\Insight', 'prefix' => 'insight',
'as' => 'api.v1.insight.',],
static function () {
// Insight in expenses.
// Insight in expenses by date.
Route::get('expense/date/basic', ['uses' => 'Expense\DateController@basic', 'as' => 'expense.date.basic']);
}
);
Route::group(
['namespace' => 'FireflyIII\Api\V1\Controllers', 'prefix' => 'currencies',
'as' => 'api.v1.currencies.',],