mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-11 17:39:41 +00:00
Code cleanup.
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
<?php
|
||||
/*
|
||||
* api-noauth.php
|
||||
* Copyright (c) 2021 james@firefly-iii.org
|
||||
*
|
||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
@@ -10,4 +29,4 @@ Route::group(
|
||||
static function () {
|
||||
Route::get('{cliToken}', ['uses' => 'CronController@cron', 'as' => 'index']);
|
||||
}
|
||||
);
|
||||
);
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
|
||||
use FireflyIII\Http\Middleware\IsAdmin;
|
||||
|
||||
/**
|
||||
@@ -158,8 +156,6 @@ Route::group(
|
||||
// TODO Transfers for piggies
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* SUMMARY CONTROLLER
|
||||
*/
|
||||
@@ -262,8 +258,6 @@ Route::group(
|
||||
Route::put('{budget}/limits/{budgetLimit}', ['uses' => 'BudgetLimit\UpdateController@update', 'as' => 'limits.update']);
|
||||
Route::delete('{budget}/limits/{budgetLimit}', ['uses' => 'BudgetLimit\DestroyController@destroy', 'as' => 'limits.delete']);
|
||||
Route::get('{budget}/limits/{budgetLimit}/transactions', ['uses' => 'BudgetLimit\ListController@transactions', 'as' => 'limits.transactions']);
|
||||
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
@@ -509,9 +503,6 @@ Route::group(
|
||||
Route::get('user', ['uses' => 'AboutController@user', 'as' => 'user']);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
||||
// Configuration API routes
|
||||
Route::group(
|
||||
['namespace' => 'FireflyIII\Api\V1\Controllers\System', 'prefix' => 'configuration',
|
||||
@@ -522,8 +513,6 @@ Route::group(
|
||||
Route::put('{dynamicConfigKey}', ['uses' => 'ConfigurationController@update', 'as' => 'update']);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// Users API routes:
|
||||
Route::group(
|
||||
['middleware' => ['auth:api', 'bindings', IsAdmin::class], 'namespace' => 'FireflyIII\Api\V1\Controllers\System', 'prefix' => 'users',
|
||||
|
||||
@@ -541,8 +541,6 @@ Route::group(
|
||||
Route::get('export', ['uses' => 'Export\IndexController@export', 'as' => 'export']);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* Object group controller.
|
||||
*/
|
||||
@@ -608,8 +606,6 @@ Route::group(
|
||||
'budget/total-budgeted/{currency}/{start_date}/{end_date}',
|
||||
['uses' => 'Json\BudgetController@getBudgetInformation', 'as' => 'budget.total-budgeted']
|
||||
);
|
||||
|
||||
|
||||
// boxes
|
||||
Route::get('box/balance', ['uses' => 'Json\BoxController@balance', 'as' => 'box.balance']);
|
||||
Route::get('box/available', ['uses' => 'Json\BoxController@available', 'as' => 'box.available']);
|
||||
@@ -867,8 +863,6 @@ Route::group(
|
||||
Route::group(
|
||||
['middleware' => 'user-full-auth', 'namespace' => 'FireflyIII\Http\Controllers\Report', 'prefix' => 'report-data/budget', 'as' => 'report-data.budget.'],
|
||||
static function () {
|
||||
|
||||
|
||||
Route::get('general/{accountList}/{start_date}/{end_date}/', ['uses' => 'BudgetController@general', 'as' => 'general']);
|
||||
// TODO is route still used?
|
||||
Route::get('period/{accountList}/{start_date}/{end_date}', ['uses' => 'BudgetController@period', 'as' => 'period']);
|
||||
@@ -906,8 +900,6 @@ Route::group(
|
||||
Route::get('', ['uses' => 'Rule\IndexController@index', 'as' => 'index']);
|
||||
|
||||
Route::post('move-rule/{rule}/{ruleGroup}', ['uses' => 'Rule\IndexController@moveRule', 'as' => 'move-rule']);
|
||||
|
||||
|
||||
// select controller
|
||||
Route::get('test', ['uses' => 'Rule\SelectController@testTriggers', 'as' => 'test-triggers']);
|
||||
Route::get('test-rule/{rule}', ['uses' => 'Rule\SelectController@testTriggersByRule', 'as' => 'test-triggers-rule']);
|
||||
|
||||
Reference in New Issue
Block a user