Expand API for categories.

This commit is contained in:
James Cole
2018-12-09 06:58:03 +01:00
parent 82e4055fa6
commit b0e1c85c55
2 changed files with 56 additions and 0 deletions

View File

@@ -121,6 +121,7 @@ Route::group(
Route::get('{category}', ['uses' => 'CategoryController@show', 'as' => 'show']);
Route::put('{category}', ['uses' => 'CategoryController@update', 'as' => 'update']);
Route::delete('{category}', ['uses' => 'CategoryController@delete', 'as' => 'delete']);
Route::get('{category}/transactions', ['uses' => 'CategoryController@transactions', 'as' => 'transactions']);
}
);