Remove routes (for help)

This commit is contained in:
James Cole 2017-10-02 16:24:31 +02:00
parent 2b73747ecf
commit 03f33c5e7e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -153,7 +153,15 @@ class HomeController extends Controller
public function routes()
{
$set = RouteFacade::getRoutes();
$ignore = ['chart.', 'javascript.', 'json.', 'report-data.', 'popup.', 'debugbar.'];
$ignore = ['chart.', 'javascript.', 'json.', 'report-data.', 'popup.', 'debugbar.','attachments.download', 'attachments.preview',
'bills.rescan','budgets.income','currencies.def','error','flush','help.show','import.file',
'login','logout','password.reset','profile.confirm-email-change','profile.undo-email-change',
'register','report.options','routes','rule-groups.down','rule-groups.up','rules.up','rules.down',
'rules.select','search.search','test-flash','transactions.link.delete','transactions.link.switch',
'two-factor.lost','report.options'
];
/** @var Route $route */
foreach ($set as $route) {
$name = $route->getName();