2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2015-02-22 08:40:13 -06:00
|
|
|
|
2016-01-08 09:01:21 -06:00
|
|
|
// auth routes, i think
|
|
|
|
Route::group(
|
|
|
|
['middleware' => 'web'], function () {
|
2016-01-19 11:32:09 -06:00
|
|
|
|
|
|
|
// Authentication Routes...
|
|
|
|
Route::get('/login', 'Auth\AuthController@showLoginForm');
|
|
|
|
Route::post('/login', 'Auth\AuthController@login');
|
|
|
|
Route::get('/logout', 'Auth\AuthController@logout');
|
|
|
|
|
|
|
|
// Registration Routes...
|
|
|
|
Route::get('/register', ['uses' => 'Auth\AuthController@showRegistrationForm', 'as' => 'register']);
|
|
|
|
Route::post('/register', 'Auth\AuthController@register');
|
|
|
|
|
|
|
|
Route::get('/password/reset', 'Auth\PasswordController@getReset');
|
|
|
|
|
|
|
|
// Password Reset Routes...
|
|
|
|
Route::get('/password/reset/{token?}', 'Auth\PasswordController@showResetForm');
|
|
|
|
Route::post('/password/email', 'Auth\PasswordController@sendResetLinkEmail');
|
|
|
|
Route::post('/password/reset', 'Auth\PasswordController@reset');
|
|
|
|
|
2016-01-08 09:01:21 -06:00
|
|
|
|
2016-02-11 05:49:04 -06:00
|
|
|
// display error:
|
|
|
|
Route::get('/error', 'HomeController@displayError');
|
|
|
|
|
|
|
|
|
2016-01-08 09:01:21 -06:00
|
|
|
}
|
2015-02-27 09:08:46 -06:00
|
|
|
);
|
|
|
|
|
2016-03-19 10:25:24 -05:00
|
|
|
Route::group(
|
|
|
|
['middleware' => 'web-auth-no-two-factor'], function () {
|
|
|
|
Route::get('/two-factor', ['uses' => 'Auth\TwoFactorController@index', 'as' => 'two-factor']);
|
|
|
|
Route::get('/lost-two-factor', ['uses' => 'Auth\TwoFactorController@lostTwoFactor', 'as' => 'lost-two-factor']);
|
|
|
|
Route::post('/two-factor', ['uses' => 'Auth\TwoFactorController@postIndex', 'as' => 'two-factor-post']);
|
|
|
|
Route::get('/flush', ['uses' => 'HomeController@flush']);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2015-06-14 01:22:02 -05:00
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
Route::group(
|
2016-01-09 00:46:11 -06:00
|
|
|
['middleware' => ['web-auth-range']], function () {
|
2015-06-14 01:22:02 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Home Controller
|
|
|
|
*/
|
2015-06-05 02:51:52 -05:00
|
|
|
Route::get('/', ['uses' => 'HomeController@index', 'as' => 'index']);
|
2015-02-27 09:08:46 -06:00
|
|
|
Route::get('/home', ['uses' => 'HomeController@index', 'as' => 'home']);
|
2015-03-10 11:26:31 -05:00
|
|
|
Route::post('/daterange', ['uses' => 'HomeController@dateRange', 'as' => 'daterange']);
|
2016-03-19 10:25:24 -05:00
|
|
|
|
2016-02-23 13:22:53 -06:00
|
|
|
Route::get('/routes', ['uses' => 'HomeController@routes']);
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Account Controller
|
|
|
|
*/
|
|
|
|
Route::get('/accounts/{what}', ['uses' => 'AccountController@index', 'as' => 'accounts.index'])->where('what', 'revenue|asset|expense');
|
|
|
|
Route::get('/accounts/create/{what}', ['uses' => 'AccountController@create', 'as' => 'accounts.create'])->where('what', 'revenue|asset|expense');
|
2015-02-07 16:19:28 -06:00
|
|
|
Route::get('/accounts/edit/{account}', ['uses' => 'AccountController@edit', 'as' => 'accounts.edit']);
|
|
|
|
Route::get('/accounts/delete/{account}', ['uses' => 'AccountController@delete', 'as' => 'accounts.delete']);
|
2015-02-07 06:15:40 -06:00
|
|
|
Route::get('/accounts/show/{account}/{view?}', ['uses' => 'AccountController@show', 'as' => 'accounts.show']);
|
2015-02-14 07:25:29 -06:00
|
|
|
|
2015-02-07 18:15:15 -06:00
|
|
|
Route::post('/accounts/store', ['uses' => 'AccountController@store', 'as' => 'accounts.store']);
|
2015-02-14 07:25:29 -06:00
|
|
|
Route::post('/accounts/update/{account}', ['uses' => 'AccountController@update', 'as' => 'accounts.update']);
|
|
|
|
Route::post('/accounts/destroy/{account}', ['uses' => 'AccountController@destroy', 'as' => 'accounts.destroy']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
2015-07-18 16:06:51 -05:00
|
|
|
|
2015-07-18 14:32:31 -05:00
|
|
|
/**
|
|
|
|
* Attachment Controller
|
|
|
|
*/
|
2015-07-18 16:06:51 -05:00
|
|
|
|
2015-07-19 05:21:38 -05:00
|
|
|
Route::post('/attachment/update/{attachment}', ['uses' => 'AttachmentController@update', 'as' => 'attachments.update']);
|
|
|
|
Route::post('/attachment/destroy/{attachment}', ['uses' => 'AttachmentController@destroy', 'as' => 'attachments.destroy']);
|
2015-07-18 16:06:51 -05:00
|
|
|
|
2015-07-19 05:21:38 -05:00
|
|
|
Route::get('/attachment/edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'attachments.edit']);
|
|
|
|
Route::get('/attachment/delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'attachments.delete']);
|
2015-07-19 15:19:36 -05:00
|
|
|
Route::get('/attachment/preview/{attachment}', ['uses' => 'AttachmentController@preview', 'as' => 'attachments.preview']);
|
2015-07-19 05:21:38 -05:00
|
|
|
Route::get('/attachment/download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'attachments.download']);
|
2015-07-18 14:32:31 -05:00
|
|
|
|
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Bills Controller
|
|
|
|
*/
|
|
|
|
Route::get('/bills', ['uses' => 'BillController@index', 'as' => 'bills.index']);
|
2015-07-06 11:13:57 -05:00
|
|
|
Route::get('/bills/rescan/{bill}', ['uses' => 'BillController@rescan', 'as' => 'bills.rescan']);
|
2015-02-07 06:15:40 -06:00
|
|
|
Route::get('/bills/create', ['uses' => 'BillController@create', 'as' => 'bills.create']);
|
2015-02-25 08:19:14 -06:00
|
|
|
Route::get('/bills/edit/{bill}', ['uses' => 'BillController@edit', 'as' => 'bills.edit']);
|
|
|
|
Route::get('/bills/delete/{bill}', ['uses' => 'BillController@delete', 'as' => 'bills.delete']);
|
2015-02-22 01:38:46 -06:00
|
|
|
Route::get('/bills/show/{bill}', ['uses' => 'BillController@show', 'as' => 'bills.show']);
|
2015-02-25 08:19:14 -06:00
|
|
|
Route::post('/bills/store', ['uses' => 'BillController@store', 'as' => 'bills.store']);
|
|
|
|
Route::post('/bills/update/{bill}', ['uses' => 'BillController@update', 'as' => 'bills.update']);
|
|
|
|
Route::post('/bills/destroy/{bill}', ['uses' => 'BillController@destroy', 'as' => 'bills.destroy']);
|
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Budget Controller
|
|
|
|
*/
|
|
|
|
Route::get('/budgets', ['uses' => 'BudgetController@index', 'as' => 'budgets.index']);
|
2015-07-06 11:13:57 -05:00
|
|
|
Route::get('/budgets/income', ['uses' => 'BudgetController@updateIncome', 'as' => 'budgets.income']);
|
2015-02-22 02:46:21 -06:00
|
|
|
Route::get('/budgets/create', ['uses' => 'BudgetController@create', 'as' => 'budgets.create']);
|
|
|
|
Route::get('/budgets/edit/{budget}', ['uses' => 'BudgetController@edit', 'as' => 'budgets.edit']);
|
|
|
|
Route::get('/budgets/delete/{budget}', ['uses' => 'BudgetController@delete', 'as' => 'budgets.delete']);
|
2015-02-22 01:38:46 -06:00
|
|
|
Route::get('/budgets/show/{budget}/{limitrepetition?}', ['uses' => 'BudgetController@show', 'as' => 'budgets.show']);
|
2015-02-22 02:46:21 -06:00
|
|
|
Route::get('/budgets/list/noBudget', ['uses' => 'BudgetController@noBudget', 'as' => 'budgets.noBudget']);
|
|
|
|
Route::post('/budgets/income', ['uses' => 'BudgetController@postUpdateIncome', 'as' => 'budgets.postIncome']);
|
|
|
|
Route::post('/budgets/store', ['uses' => 'BudgetController@store', 'as' => 'budgets.store']);
|
|
|
|
Route::post('/budgets/update/{budget}', ['uses' => 'BudgetController@update', 'as' => 'budgets.update']);
|
|
|
|
Route::post('/budgets/destroy/{budget}', ['uses' => 'BudgetController@destroy', 'as' => 'budgets.destroy']);
|
|
|
|
Route::post('budgets/amount/{budget}', ['uses' => 'BudgetController@amount']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Category Controller
|
|
|
|
*/
|
|
|
|
Route::get('/categories', ['uses' => 'CategoryController@index', 'as' => 'categories.index']);
|
2015-02-22 09:19:32 -06:00
|
|
|
Route::get('/categories/create', ['uses' => 'CategoryController@create', 'as' => 'categories.create']);
|
|
|
|
Route::get('/categories/edit/{category}', ['uses' => 'CategoryController@edit', 'as' => 'categories.edit']);
|
|
|
|
Route::get('/categories/delete/{category}', ['uses' => 'CategoryController@delete', 'as' => 'categories.delete']);
|
2015-02-22 01:38:46 -06:00
|
|
|
Route::get('/categories/show/{category}', ['uses' => 'CategoryController@show', 'as' => 'categories.show']);
|
2015-09-25 09:00:14 -05:00
|
|
|
Route::get('/categories/show/{category}/{date}', ['uses' => 'CategoryController@showWithDate', 'as' => 'categories.show.date']);
|
2015-02-22 09:19:32 -06:00
|
|
|
Route::get('/categories/list/noCategory', ['uses' => 'CategoryController@noCategory', 'as' => 'categories.noCategory']);
|
|
|
|
Route::post('/categories/store', ['uses' => 'CategoryController@store', 'as' => 'categories.store']);
|
|
|
|
Route::post('/categories/update/{category}', ['uses' => 'CategoryController@update', 'as' => 'categories.update']);
|
|
|
|
Route::post('/categories/destroy/{category}', ['uses' => 'CategoryController@destroy', 'as' => 'categories.destroy']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
2015-07-03 03:45:00 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* CSV controller
|
|
|
|
*/
|
|
|
|
Route::get('/csv', ['uses' => 'CsvController@index', 'as' => 'csv.index']);
|
2015-07-03 04:52:51 -05:00
|
|
|
Route::post('/csv/upload', ['uses' => 'CsvController@upload', 'as' => 'csv.upload']);
|
2015-07-04 00:53:37 -05:00
|
|
|
Route::get('/csv/column_roles', ['uses' => 'CsvController@columnRoles', 'as' => 'csv.column-roles']);
|
|
|
|
Route::post('/csv/initial_parse', ['uses' => 'CsvController@initialParse', 'as' => 'csv.initial_parse']);
|
|
|
|
Route::get('/csv/map', ['uses' => 'CsvController@map', 'as' => 'csv.map']);
|
2015-07-04 23:18:02 -05:00
|
|
|
Route::get('/csv/download-config', ['uses' => 'CsvController@downloadConfig', 'as' => 'csv.download-config']);
|
|
|
|
Route::get('/csv/download', ['uses' => 'CsvController@downloadConfigPage', 'as' => 'csv.download-config-page']);
|
2015-07-04 00:53:37 -05:00
|
|
|
Route::post('/csv/save_mapping', ['uses' => 'CsvController@saveMapping', 'as' => 'csv.save_mapping']);
|
2015-07-04 23:18:02 -05:00
|
|
|
|
2015-07-04 00:53:37 -05:00
|
|
|
Route::get('/csv/process', ['uses' => 'CsvController@process', 'as' => 'csv.process']);
|
2015-07-03 03:45:00 -05:00
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Currency Controller
|
|
|
|
*/
|
|
|
|
Route::get('/currency', ['uses' => 'CurrencyController@index', 'as' => 'currency.index']);
|
2015-02-25 08:57:43 -06:00
|
|
|
Route::get('/currency/create', ['uses' => 'CurrencyController@create', 'as' => 'currency.create']);
|
|
|
|
Route::get('/currency/edit/{currency}', ['uses' => 'CurrencyController@edit', 'as' => 'currency.edit']);
|
|
|
|
Route::get('/currency/delete/{currency}', ['uses' => 'CurrencyController@delete', 'as' => 'currency.delete']);
|
|
|
|
Route::get('/currency/default/{currency}', ['uses' => 'CurrencyController@defaultCurrency', 'as' => 'currency.default']);
|
|
|
|
Route::post('/currency/store', ['uses' => 'CurrencyController@store', 'as' => 'currency.store']);
|
|
|
|
Route::post('/currency/update/{currency}', ['uses' => 'CurrencyController@update', 'as' => 'currency.update']);
|
|
|
|
Route::post('/currency/destroy/{currency}', ['uses' => 'CurrencyController@destroy', 'as' => 'currency.destroy']);
|
|
|
|
|
2016-02-04 10:13:42 -06:00
|
|
|
/**
|
|
|
|
* Export Controller
|
|
|
|
*/
|
|
|
|
Route::get('/export', ['uses' => 'ExportController@index', 'as' => 'export.index']);
|
|
|
|
Route::post('/export/submit', ['uses' => 'ExportController@postIndex', 'as' => 'export.export']);
|
|
|
|
Route::get('/export/status/{jobKey}', ['uses' => 'ExportController@getStatus', 'as' => 'export.status']);
|
|
|
|
Route::get('/export/download/{jobKey}', ['uses' => 'ExportController@download', 'as' => 'export.download']);
|
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
/**
|
2015-05-16 02:57:31 -05:00
|
|
|
* ALL CHART Controllers
|
2015-02-07 06:15:40 -06:00
|
|
|
*/
|
2015-05-16 02:57:31 -05:00
|
|
|
// accounts:
|
|
|
|
Route::get('/chart/account/frontpage', ['uses' => 'Chart\AccountController@frontpage']);
|
2015-08-01 00:04:41 -05:00
|
|
|
Route::get('/chart/account/expense', ['uses' => 'Chart\AccountController@expenseAccounts']);
|
2015-12-28 13:04:54 -06:00
|
|
|
Route::get('/chart/account/report/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\AccountController@report']);
|
2015-05-16 02:57:31 -05:00
|
|
|
Route::get('/chart/account/{account}', ['uses' => 'Chart\AccountController@single']);
|
|
|
|
|
2015-05-17 11:03:16 -05:00
|
|
|
|
2015-05-16 02:57:31 -05:00
|
|
|
// bills:
|
|
|
|
Route::get('/chart/bill/frontpage', ['uses' => 'Chart\BillController@frontpage']);
|
|
|
|
Route::get('/chart/bill/{bill}', ['uses' => 'Chart\BillController@single']);
|
|
|
|
|
|
|
|
// budgets:
|
|
|
|
Route::get('/chart/budget/frontpage', ['uses' => 'Chart\BudgetController@frontpage']);
|
2015-12-12 13:56:07 -06:00
|
|
|
|
|
|
|
// this chart is used in reports:
|
2015-12-28 13:04:54 -06:00
|
|
|
Route::get('/chart/budget/year/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\BudgetController@year']);
|
|
|
|
Route::get('/chart/budget/multi-year/{reportType}/{start_date}/{end_date}/{accountList}/{budgetList}', ['uses' => 'Chart\BudgetController@multiYear']);
|
2015-12-12 13:56:07 -06:00
|
|
|
|
2015-05-16 02:57:31 -05:00
|
|
|
Route::get('/chart/budget/{budget}/{limitrepetition}', ['uses' => 'Chart\BudgetController@budgetLimit']);
|
2015-05-19 23:49:22 -05:00
|
|
|
Route::get('/chart/budget/{budget}', ['uses' => 'Chart\BudgetController@budget']);
|
2015-05-16 02:57:31 -05:00
|
|
|
|
|
|
|
// categories:
|
|
|
|
Route::get('/chart/category/frontpage', ['uses' => 'Chart\CategoryController@frontpage']);
|
2015-12-12 13:56:07 -06:00
|
|
|
|
2015-12-16 06:08:26 -06:00
|
|
|
// these three charts are for reports:
|
2015-12-28 13:04:54 -06:00
|
|
|
Route::get('/chart/category/earned-in-period/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\CategoryController@earnedInPeriod']);
|
|
|
|
Route::get('/chart/category/spent-in-period/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\CategoryController@spentInPeriod']);
|
2015-12-16 06:08:26 -06:00
|
|
|
Route::get(
|
2015-12-28 13:04:54 -06:00
|
|
|
'/chart/category/multi-year/{reportType}/{start_date}/{end_date}/{accountList}/{categoryList}', ['uses' => 'Chart\CategoryController@multiYear']
|
2015-12-16 06:08:26 -06:00
|
|
|
);
|
2015-12-12 13:56:07 -06:00
|
|
|
|
2015-09-26 00:18:12 -05:00
|
|
|
Route::get('/chart/category/{category}/period', ['uses' => 'Chart\CategoryController@currentPeriod']);
|
|
|
|
Route::get('/chart/category/{category}/period/{date}', ['uses' => 'Chart\CategoryController@specificPeriod']);
|
2015-05-16 02:57:31 -05:00
|
|
|
Route::get('/chart/category/{category}/all', ['uses' => 'Chart\CategoryController@all']);
|
|
|
|
|
|
|
|
// piggy banks:
|
2015-12-31 00:54:11 -06:00
|
|
|
Route::get('/chart/piggy-bank/{piggyBank}', ['uses' => 'Chart\PiggyBankController@history']);
|
2015-05-16 02:26:54 -05:00
|
|
|
|
2015-05-16 03:05:22 -05:00
|
|
|
// reports:
|
2015-12-28 13:04:54 -06:00
|
|
|
Route::get('/chart/report/in-out/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\ReportController@yearInOut']);
|
|
|
|
Route::get('/chart/report/in-out-sum/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\ReportController@yearInOutSummarized']);
|
2016-02-18 03:04:53 -06:00
|
|
|
Route::get('/chart/report/net-worth/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'Chart\ReportController@netWorth']);
|
2015-05-16 02:57:31 -05:00
|
|
|
|
|
|
|
|
2015-02-25 09:10:02 -06:00
|
|
|
/**
|
|
|
|
* Help Controller
|
|
|
|
*/
|
|
|
|
Route::get('/help/{route}', ['uses' => 'HelpController@show', 'as' => 'help.show']);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* JSON Controller
|
|
|
|
*/
|
2015-02-24 15:53:38 -06:00
|
|
|
Route::get('/json/expense-accounts', ['uses' => 'JsonController@expenseAccounts', 'as' => 'json.expense-accounts']);
|
|
|
|
Route::get('/json/revenue-accounts', ['uses' => 'JsonController@revenueAccounts', 'as' => 'json.revenue-accounts']);
|
|
|
|
Route::get('/json/categories', ['uses' => 'JsonController@categories', 'as' => 'json.categories']);
|
2015-04-28 03:36:13 -05:00
|
|
|
Route::get('/json/tags', ['uses' => 'JsonController@tags', 'as' => 'json.tags']);
|
2015-07-11 03:01:13 -05:00
|
|
|
Route::get('/json/tour', ['uses' => 'JsonController@tour', 'as' => 'json.tour']);
|
2015-07-12 05:45:41 -05:00
|
|
|
Route::post('/json/end-tour', ['uses' => 'JsonController@endTour']);
|
|
|
|
|
2015-04-11 00:24:07 -05:00
|
|
|
Route::get('/json/box/in', ['uses' => 'JsonController@boxIn', 'as' => 'json.box.in']);
|
|
|
|
Route::get('/json/box/out', ['uses' => 'JsonController@boxOut', 'as' => 'json.box.out']);
|
|
|
|
Route::get('/json/box/bills-unpaid', ['uses' => 'JsonController@boxBillsUnpaid', 'as' => 'json.box.paid']);
|
|
|
|
Route::get('/json/box/bills-paid', ['uses' => 'JsonController@boxBillsPaid', 'as' => 'json.box.unpaid']);
|
2015-03-27 07:16:14 -05:00
|
|
|
Route::get('/json/transaction-journals/{what}', 'JsonController@transactionJournals');
|
2015-02-07 06:15:40 -06:00
|
|
|
|
2016-01-24 09:12:59 -06:00
|
|
|
Route::get('/json/trigger', ['uses' => 'JsonController@trigger', 'as' => 'json.trigger']);
|
|
|
|
Route::get('/json/action', ['uses' => 'JsonController@action', 'as' => 'json.action']);
|
2016-01-14 09:41:15 -06:00
|
|
|
|
2015-06-01 11:13:54 -05:00
|
|
|
/**
|
|
|
|
* New user Controller
|
|
|
|
*/
|
|
|
|
Route::get('/new-user', ['uses' => 'NewUserController@index', 'as' => 'new-user.index']);
|
|
|
|
Route::post('/new-user/submit', ['uses' => 'NewUserController@submit', 'as' => 'new-user.submit']);
|
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Piggy Bank Controller
|
|
|
|
*/
|
2015-02-24 14:10:25 -06:00
|
|
|
Route::get('/piggy-banks', ['uses' => 'PiggyBankController@index', 'as' => 'piggy-banks.index']);
|
2015-07-06 11:13:57 -05:00
|
|
|
Route::get('/piggy-banks/add/{piggyBank}', ['uses' => 'PiggyBankController@add', 'as' => 'piggy-banks.addMoney']);
|
|
|
|
Route::get('/piggy-banks/remove/{piggyBank}', ['uses' => 'PiggyBankController@remove', 'as' => 'piggy-banks.removeMoney']);
|
2015-02-24 14:10:25 -06:00
|
|
|
Route::get('/piggy-banks/create', ['uses' => 'PiggyBankController@create', 'as' => 'piggy-banks.create']);
|
|
|
|
Route::get('/piggy-banks/edit/{piggyBank}', ['uses' => 'PiggyBankController@edit', 'as' => 'piggy-banks.edit']);
|
|
|
|
Route::get('/piggy-banks/delete/{piggyBank}', ['uses' => 'PiggyBankController@delete', 'as' => 'piggy-banks.delete']);
|
|
|
|
Route::get('/piggy-banks/show/{piggyBank}', ['uses' => 'PiggyBankController@show', 'as' => 'piggy-banks.show']);
|
2015-02-25 12:32:33 -06:00
|
|
|
Route::post('/piggy-banks/store', ['uses' => 'PiggyBankController@store', 'as' => 'piggy-banks.store']);
|
|
|
|
Route::post('/piggy-banks/update/{piggyBank}', ['uses' => 'PiggyBankController@update', 'as' => 'piggy-banks.update']);
|
|
|
|
Route::post('/piggy-banks/destroy/{piggyBank}', ['uses' => 'PiggyBankController@destroy', 'as' => 'piggy-banks.destroy']);
|
2015-07-06 11:13:57 -05:00
|
|
|
Route::post('/piggy-banks/add/{piggyBank}', ['uses' => 'PiggyBankController@postAdd', 'as' => 'piggy-banks.add']);
|
|
|
|
Route::post('/piggy-banks/remove/{piggyBank}', ['uses' => 'PiggyBankController@postRemove', 'as' => 'piggy-banks.remove']);
|
2015-03-15 12:00:33 -05:00
|
|
|
Route::post('/piggy-banks/sort', ['uses' => 'PiggyBankController@order', 'as' => 'piggy-banks.order']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Preferences Controller
|
|
|
|
*/
|
|
|
|
Route::get('/preferences', ['uses' => 'PreferencesController@index', 'as' => 'preferences']);
|
2015-02-25 14:19:06 -06:00
|
|
|
Route::post('/preferences', ['uses' => 'PreferencesController@postIndex']);
|
2016-03-03 13:45:27 -06:00
|
|
|
Route::get('/preferences/code', ['uses' => 'PreferencesController@code', 'as' => 'preferences.code']);
|
2016-03-07 13:28:26 -06:00
|
|
|
Route::get('/preferences/delete-code', ['uses' => 'PreferencesController@deleteCode', 'as' => 'preferences.delete-code']);
|
2016-03-03 13:45:27 -06:00
|
|
|
Route::post('/preferences/code', ['uses' => 'PreferencesController@postCode']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Profile Controller
|
|
|
|
*/
|
|
|
|
Route::get('/profile', ['uses' => 'ProfileController@index', 'as' => 'profile']);
|
2015-06-21 03:50:45 -05:00
|
|
|
Route::get('/profile/change-password', ['uses' => 'ProfileController@changePassword', 'as' => 'profile.change-password']);
|
|
|
|
Route::get('/profile/delete-account', ['uses' => 'ProfileController@deleteAccount', 'as' => 'profile.delete-account']);
|
2015-04-22 00:54:56 -05:00
|
|
|
Route::post('/profile/delete-account', ['uses' => 'ProfileController@postDeleteAccount', 'as' => 'delete-account-post']);
|
2015-03-10 11:26:31 -05:00
|
|
|
Route::post('/profile/change-password', ['uses' => 'ProfileController@postChangePassword', 'as' => 'change-password-post']);
|
2015-02-25 14:19:06 -06:00
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Report Controller
|
|
|
|
*/
|
|
|
|
Route::get('/reports', ['uses' => 'ReportController@index', 'as' => 'reports.index']);
|
2015-12-28 13:04:54 -06:00
|
|
|
Route::get('/reports/report/{reportType}/{start_date}/{end_date}/{accountList}', ['uses' => 'ReportController@report', 'as' => 'reports.report']);
|
2015-03-04 13:47:00 -06:00
|
|
|
|
2016-01-11 13:41:50 -06:00
|
|
|
/**
|
|
|
|
* Rules Controller
|
|
|
|
*/
|
2016-01-15 06:06:17 -06:00
|
|
|
// index
|
2016-01-11 13:41:50 -06:00
|
|
|
Route::get('/rules', ['uses' => 'RuleController@index', 'as' => 'rules.index']);
|
|
|
|
|
2016-01-15 06:06:17 -06:00
|
|
|
// rules GET:
|
2016-01-15 06:10:34 -06:00
|
|
|
Route::get('/rules/create/{ruleGroup}', ['uses' => 'RuleController@create', 'as' => 'rules.rule.create']);
|
|
|
|
Route::get('/rules/rules/up/{rule}', ['uses' => 'RuleController@up', 'as' => 'rules.rule.up']);
|
|
|
|
Route::get('/rules/rules/down/{rule}', ['uses' => 'RuleController@down', 'as' => 'rules.rule.down']);
|
|
|
|
Route::get('/rules/rules/edit/{rule}', ['uses' => 'RuleController@edit', 'as' => 'rules.rule.edit']);
|
|
|
|
Route::get('/rules/rules/delete/{rule}', ['uses' => 'RuleController@delete', 'as' => 'rules.rule.delete']);
|
2016-02-17 05:05:41 -06:00
|
|
|
Route::get('/rules/rules/test_triggers', ['uses' => 'RuleController@testTriggers', 'as' => 'rules.rule.test_triggers']);
|
2016-02-23 09:15:53 -06:00
|
|
|
|
2016-01-15 06:06:17 -06:00
|
|
|
// rules POST:
|
2016-01-14 04:27:15 -06:00
|
|
|
Route::post('/rules/rules/trigger/reorder/{rule}', ['uses' => 'RuleController@reorderRuleTriggers']);
|
|
|
|
Route::post('/rules/rules/action/reorder/{rule}', ['uses' => 'RuleController@reorderRuleActions']);
|
2016-01-15 06:10:34 -06:00
|
|
|
Route::post('/rules/store/{ruleGroup}', ['uses' => 'RuleController@store', 'as' => 'rules.rule.store']);
|
|
|
|
Route::post('/rules/update/{rule}', ['uses' => 'RuleController@update', 'as' => 'rules.rule.update']);
|
|
|
|
Route::post('/rules/destroy/{rule}', ['uses' => 'RuleController@destroy', 'as' => 'rules.rule.destroy']);
|
2016-01-14 05:37:49 -06:00
|
|
|
|
2016-01-14 04:27:15 -06:00
|
|
|
|
2016-01-15 06:06:17 -06:00
|
|
|
// rule groups GET
|
2016-01-15 06:09:27 -06:00
|
|
|
Route::get('/rules/groups/create', ['uses' => 'RuleGroupController@create', 'as' => 'rules.rule-group.create']);
|
|
|
|
Route::get('/rules/groups/edit/{ruleGroup}', ['uses' => 'RuleGroupController@edit', 'as' => 'rules.rule-group.edit']);
|
|
|
|
Route::get('/rules/groups/delete/{ruleGroup}', ['uses' => 'RuleGroupController@delete', 'as' => 'rules.rule-group.delete']);
|
|
|
|
Route::get('/rules/groups/up/{ruleGroup}', ['uses' => 'RuleGroupController@up', 'as' => 'rules.rule-group.up']);
|
|
|
|
Route::get('/rules/groups/down/{ruleGroup}', ['uses' => 'RuleGroupController@down', 'as' => 'rules.rule-group.down']);
|
2016-02-23 09:03:05 -06:00
|
|
|
Route::get(
|
|
|
|
'/rules/groups/select_transactions/{ruleGroup}', ['uses' => 'RuleGroupController@selectTransactions', 'as' => 'rules.rule-group.select_transactions']
|
|
|
|
);
|
|
|
|
|
2016-01-15 06:06:17 -06:00
|
|
|
// rule groups POST
|
2016-01-15 06:09:27 -06:00
|
|
|
Route::post('/rules/groups/store', ['uses' => 'RuleGroupController@store', 'as' => 'rules.rule-group.store']);
|
|
|
|
Route::post('/rules/groups/update/{ruleGroup}', ['uses' => 'RuleGroupController@update', 'as' => 'rules.rule-group.update']);
|
|
|
|
Route::post('/rules/groups/destroy/{ruleGroup}', ['uses' => 'RuleGroupController@destroy', 'as' => 'rules.rule-group.destroy']);
|
2016-02-23 07:18:09 -06:00
|
|
|
Route::post('/rules/groups/execute/{ruleGroup}', ['uses' => 'RuleGroupController@execute', 'as' => 'rules.rule-group.execute']);
|
2016-02-23 09:03:05 -06:00
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Search Controller
|
|
|
|
*/
|
|
|
|
Route::get('/search', ['uses' => 'SearchController@index', 'as' => 'search']);
|
|
|
|
|
2015-04-28 01:58:01 -05:00
|
|
|
/**
|
|
|
|
* Tag Controller
|
|
|
|
*/
|
|
|
|
Route::get('/tags', ['uses' => 'TagController@index', 'as' => 'tags.index']);
|
|
|
|
Route::get('/tags/create', ['uses' => 'TagController@create', 'as' => 'tags.create']);
|
|
|
|
Route::get('/tags/show/{tag}', ['uses' => 'TagController@show', 'as' => 'tags.show']);
|
|
|
|
Route::get('/tags/edit/{tag}', ['uses' => 'TagController@edit', 'as' => 'tags.edit']);
|
|
|
|
Route::get('/tags/delete/{tag}', ['uses' => 'TagController@delete', 'as' => 'tags.delete']);
|
|
|
|
|
|
|
|
Route::post('/tags/store', ['uses' => 'TagController@store', 'as' => 'tags.store']);
|
|
|
|
Route::post('/tags/update/{tag}', ['uses' => 'TagController@update', 'as' => 'tags.update']);
|
|
|
|
Route::post('/tags/destroy/{tag}', ['uses' => 'TagController@destroy', 'as' => 'tags.destroy']);
|
|
|
|
|
|
|
|
Route::post('/tags/hideTagHelp/{state}', ['uses' => 'TagController@hideTagHelp', 'as' => 'tags.hideTagHelp']);
|
|
|
|
|
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
/**
|
|
|
|
* Transaction Controller
|
|
|
|
*/
|
|
|
|
Route::get('/transactions/{what}', ['uses' => 'TransactionController@index', 'as' => 'transactions.index'])->where(
|
|
|
|
['what' => 'expenses|revenue|withdrawal|deposit|transfer|transfers']
|
|
|
|
);
|
|
|
|
Route::get('/transactions/create/{what}', ['uses' => 'TransactionController@create', 'as' => 'transactions.create'])->where(
|
|
|
|
['what' => 'expenses|revenue|withdrawal|deposit|transfer|transfers']
|
|
|
|
);
|
2015-02-22 01:38:46 -06:00
|
|
|
Route::get('/transaction/edit/{tj}', ['uses' => 'TransactionController@edit', 'as' => 'transactions.edit']);
|
|
|
|
Route::get('/transaction/delete/{tj}', ['uses' => 'TransactionController@delete', 'as' => 'transactions.delete']);
|
2015-02-07 06:15:40 -06:00
|
|
|
Route::get('/transaction/show/{tj}', ['uses' => 'TransactionController@show', 'as' => 'transactions.show']);
|
2015-02-24 14:10:25 -06:00
|
|
|
// transaction controller:
|
|
|
|
Route::post('/transactions/store/{what}', ['uses' => 'TransactionController@store', 'as' => 'transactions.store'])->where(
|
|
|
|
['what' => 'expenses|revenue|withdrawal|deposit|transfer|transfers']
|
|
|
|
);
|
|
|
|
Route::post('/transaction/update/{tj}', ['uses' => 'TransactionController@update', 'as' => 'transactions.update']);
|
|
|
|
Route::post('/transaction/destroy/{tj}', ['uses' => 'TransactionController@destroy', 'as' => 'transactions.destroy']);
|
2015-03-27 01:20:32 -05:00
|
|
|
Route::post('/transaction/reorder', ['uses' => 'TransactionController@reorder', 'as' => 'transactions.reorder']);
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
/**
|
2015-02-07 15:50:47 -06:00
|
|
|
* Auth\Auth Controller
|
2015-02-07 06:15:40 -06:00
|
|
|
*/
|
2016-01-09 00:38:18 -06:00
|
|
|
Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']);
|
2015-02-07 15:50:47 -06:00
|
|
|
|
2015-02-07 06:15:40 -06:00
|
|
|
|
|
|
|
}
|
2015-02-06 00:23:26 -06:00
|
|
|
);
|
2015-02-07 15:50:47 -06:00
|
|
|
|