12279b4f3SGreg Roach<?php 22279b4f3SGreg Roach 32279b4f3SGreg Roach/** 42279b4f3SGreg Roach * webtrees: online genealogy 52279b4f3SGreg Roach * Copyright (C) 2019 webtrees development team 62279b4f3SGreg Roach * This program is free software: you can redistribute it and/or modify 72279b4f3SGreg Roach * it under the terms of the GNU General Public License as published by 82279b4f3SGreg Roach * the Free Software Foundation, either version 3 of the License, or 92279b4f3SGreg Roach * (at your option) any later version. 102279b4f3SGreg Roach * This program is distributed in the hope that it will be useful, 112279b4f3SGreg Roach * but WITHOUT ANY WARRANTY; without even the implied warranty of 122279b4f3SGreg Roach * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 132279b4f3SGreg Roach * GNU General Public License for more details. 142279b4f3SGreg Roach * You should have received a copy of the GNU General Public License 152279b4f3SGreg Roach * along with this program. If not, see <http://www.gnu.org/licenses/>. 162279b4f3SGreg Roach */ 172279b4f3SGreg Roach 182279b4f3SGreg Roachdeclare(strict_types=1); 192279b4f3SGreg Roach 202279b4f3SGreg Roachnamespace Fisharebest\Webtrees\Http\Routes; 212279b4f3SGreg Roach 222279b4f3SGreg Roachuse Aura\Router\Map; 232279b4f3SGreg Roachuse Fig\Http\Message\RequestMethodInterface; 242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthAdministrator; 252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthEditor; 262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthLoggedIn; 272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthManager; 282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthMember; 292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthModerator; 302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountDelete; 312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountEdit; 322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountUpdate; 337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyAction; 347c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyPage; 357c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualAction; 367c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualPage; 377c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddName; 382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact; 397c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualAction; 407c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualPage; 417c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyAction; 427c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage; 437c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualAction; 447c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualPage; 457c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedAction; 467c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedPage; 476577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileDownload; 486577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileThumbnail; 4946431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppleTouchIconPng; 50e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction; 51e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage; 52b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarAction; 53b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarEvents; 54b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarPage; 5543322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersAction; 5643322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersPage; 576fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckTree; 582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder; 59e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction; 60e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage; 612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 622279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact; 632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction; 642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal; 652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction; 662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal; 672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction; 682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal; 692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction; 702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal; 712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction; 722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal; 732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction; 742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage; 75ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose; 7655749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData; 7755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage; 78ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview; 79ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect; 8055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate; 8155749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll; 822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact; 832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath; 842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord; 852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction; 862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser; 8755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction; 88a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage; 897c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditName; 902279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction; 912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage; 922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction; 932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage; 94901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction; 95901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage; 966d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 976d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage; 986d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage; 10046431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco; 1016fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords; 1026fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad; 1032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage; 1041635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage; 1052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText; 1062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage; 1076fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction; 1086fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage; 1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage; 1107c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction; 1117c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage; 1127c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction; 1137c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage; 1142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction; 1152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage; 1162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout; 1176fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 11894e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete; 11994e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList; 120040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade; 12146b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload; 12246b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail; 1232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage; 1245bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 1255bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage; 1265bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction; 1275bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage; 1286fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction; 1296fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage; 130e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction; 131e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage; 132e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect; 1332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction; 1349f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings; 1356fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction; 1366fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 1379f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction; 1389f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage; 1399f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction; 1409f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage; 1419f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction; 1429f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage; 1439f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction; 1449f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage; 1459f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction; 1469f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage; 1479f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction; 1489f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage; 1499f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction; 1509f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage; 1519f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction; 1529f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage; 1539f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction; 1549f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage; 1559f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction; 1569f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage; 1579f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction; 1589f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage; 1599f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction; 1609f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage; 1619f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction; 1629f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage; 1632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage; 1642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction; 1652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage; 1662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction; 1672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage; 1682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact; 1692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges; 1702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange; 1712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord; 1722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree; 1732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction; 1742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData; 1752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete; 1762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload; 1772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage; 1782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange; 1792279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord; 1802279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree; 1812279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation; 1822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping; 1832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction; 1842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage; 1856fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction; 1866fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage; 1872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction; 1882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage; 189901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction; 190901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage; 1912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction; 1922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage; 1932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction; 1942279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage; 1952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate; 1962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction; 1972279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage; 1982279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction; 1992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage; 2002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage; 2012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt; 2022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction; 2032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage; 2042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction; 2052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage; 2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction; 2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage; 2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction; 2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction; 2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage; 2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family; 2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual; 2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject; 2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note; 215a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place; 2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository; 2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source; 2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter; 2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree; 2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage; 2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact; 2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme; 2232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction; 2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData; 2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete; 2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload; 2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage; 228c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction; 229c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage; 230c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction; 231c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage; 2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage; 2331635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage; 234ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage; 2356fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees; 2368e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage; 2378e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock; 2388e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit; 2398e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate; 2408e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit; 2418e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate; 2428e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit; 2438e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate; 2446fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction; 2456fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage; 2466fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction; 2476fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage; 24896716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction; 24996716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage; 2508e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage; 2518e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock; 2528e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit; 2538e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate; 2548e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit; 2558e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate; 2568e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit; 2578e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate; 2582474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction; 2592474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage; 2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail; 2612279b4f3SGreg Roach 2622279b4f3SGreg Roach/** 2632279b4f3SGreg Roach * Routing table for web requests 2642279b4f3SGreg Roach */ 2652279b4f3SGreg Roachclass WebRoutes 2662279b4f3SGreg Roach{ 2672279b4f3SGreg Roach public function load(Map $router): void 2682279b4f3SGreg Roach { 269901ade19SGreg Roach $router->attach('', '', static function (Map $router) { 2702279b4f3SGreg Roach // Admin routes. 2712279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 2722279b4f3SGreg Roach $router->extras([ 273901ade19SGreg Roach 'middleware' => [ 274901ade19SGreg Roach AuthAdministrator::class, 275901ade19SGreg Roach ], 2762279b4f3SGreg Roach ]); 2772279b4f3SGreg Roach 278451d4d87SGreg Roach $router->get(ControlPanel::class, ''); 279451d4d87SGreg Roach $router->get(BroadcastPage::class, '/broadcast'); 280451d4d87SGreg Roach $router->post(BroadcastAction::class, '/broadcast'); 281451d4d87SGreg Roach $router->get(CleanDataFolder::class, '/clean'); 282451d4d87SGreg Roach $router->post(DeletePath::class, '/delete-path'); 283451d4d87SGreg Roach $router->get(EmailPreferencesPage::class, '/email'); 284451d4d87SGreg Roach $router->post(EmailPreferencesAction::class, '/email'); 285451d4d87SGreg Roach $router->get(PhpInformation::class, '/information'); 286451d4d87SGreg Roach $router->get(SiteLogsPage::class, '/logs'); 287451d4d87SGreg Roach $router->post(SiteLogsAction::class, '/logs'); 288451d4d87SGreg Roach $router->get(SiteLogsData::class, '/logs-data'); 289451d4d87SGreg Roach $router->post(SiteLogsDelete::class, '/logs-delete'); 290451d4d87SGreg Roach $router->get(SiteLogsDownload::class, '/logs-download'); 291451d4d87SGreg Roach $router->post(Masquerade::class, '/masquerade/{user_id}'); 2923d180ba8SGreg Roach $router->get('admin-media', '/media', 'Admin\MediaController::index'); 2933d180ba8SGreg Roach $router->post('admin-media-select', '/media', 'Admin\MediaController::select'); 2943d180ba8SGreg Roach $router->get('admin-media-data', '/media-data', 'Admin\MediaController::data'); 2953d180ba8SGreg Roach $router->get('admin-media-upload', '/media-upload', 'Admin\MediaController::upload'); 2963d180ba8SGreg Roach $router->post('admin-media-upload-action', '/media-upload', 'Admin\MediaController::uploadAction'); 29710a93a5fSGreg Roach $router->get(AdminMediaFileDownload::class, '/media-file'); 29810a93a5fSGreg Roach $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail'); 299451d4d87SGreg Roach $router->get(CreateTreePage::class, '/trees/create'); 300451d4d87SGreg Roach $router->post(CreateTreeAction::class, '/trees/create'); 301451d4d87SGreg Roach $router->post(SelectDefaultTree::class, '/trees/default/{tree}'); 302451d4d87SGreg Roach $router->post(DeleteTreeAction::class, '/trees/delete/{tree}'); 3032279b4f3SGreg Roach $router->get('admin-fix-level-0-media', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0Media'); 3042279b4f3SGreg Roach $router->post('admin-fix-level-0-media-action', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0MediaAction'); 3052279b4f3SGreg Roach $router->get('admin-fix-level-0-media-data', '/fix-level-0-media-data', 'Admin\FixLevel0MediaController::fixLevel0MediaData'); 3062279b4f3SGreg Roach $router->get('admin-webtrees1-thumbs', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1Thumbnails'); 3072279b4f3SGreg Roach $router->post('admin-webtrees1-thumbs-action', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsAction'); 3082279b4f3SGreg Roach $router->get('admin-webtrees1-thumbs-data', '/webtrees1-thumbs-data', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsData'); 309451d4d87SGreg Roach $router->get(UsersCleanupPage::class, '/users-cleanup'); 310451d4d87SGreg Roach $router->post(UsersCleanupAction::class, '/users-cleanup'); 311451d4d87SGreg Roach $router->get(MapDataList::class, '/map-data'); 3122279b4f3SGreg Roach $router->get('map-data-edit', '/map-data-edit', 'Admin\LocationController::mapDataEdit'); 3132279b4f3SGreg Roach $router->post('map-data-update', '/map-data-edit', 'Admin\LocationController::mapDataSave'); 314451d4d87SGreg Roach $router->post(MapDataDelete::class, '/map-data-delete'); 3152279b4f3SGreg Roach $router->get('locations-export', '/locations-export', 'Admin\LocationController::exportLocations'); 3162279b4f3SGreg Roach $router->get('locations-import', '/locations-import', 'Admin\LocationController::importLocations'); 3172279b4f3SGreg Roach $router->post('locations-import-action', '/locations-import', 'Admin\LocationController::importLocationsAction'); 3182279b4f3SGreg Roach $router->get('map-provider', '/map-provider', 'Admin\MapProviderController::mapProviderEdit'); 3192279b4f3SGreg Roach $router->post('map-provider-action', '/map-provider', 'Admin\MapProviderController::mapProviderSave'); 3209f667ff2SGreg Roach $router->post(ModuleDeleteSettings::class, '/module-delete-settings'); 3219f667ff2SGreg Roach $router->get(ModulesAllPage::class, '/modules'); 3229f667ff2SGreg Roach $router->post(ModulesAllAction::class, '/modules'); 3239f667ff2SGreg Roach $router->get(ModulesAnalyticsPage::class, '/analytics'); 3249f667ff2SGreg Roach $router->post(ModulesAnalyticsAction::class, '/analytics'); 3259f667ff2SGreg Roach $router->get(ModulesBlocksPage::class, '/blocks'); 3269f667ff2SGreg Roach $router->post(ModulesBlocksAction::class, '/blocks'); 3279f667ff2SGreg Roach $router->get(ModulesChartsPage::class, '/charts'); 3289f667ff2SGreg Roach $router->post(ModulesChartsAction::class, '/charts'); 3299f667ff2SGreg Roach $router->get(ModulesDataFixesPage::class, '/data-fixes'); 3309f667ff2SGreg Roach $router->post(ModulesDataFixesAction::class, '/data-fixes'); 3319f667ff2SGreg Roach $router->get(ModulesFootersPage::class, '/footers'); 3329f667ff2SGreg Roach $router->post(ModulesFootersAction::class, '/footers'); 3339f667ff2SGreg Roach $router->get(ModulesHistoricEventsPage::class, '/historic-events'); 3349f667ff2SGreg Roach $router->post(ModulesHistoricEventsAction::class, '/historic-events'); 3359f667ff2SGreg Roach $router->get(ModulesListsPage::class, '/lists'); 3369f667ff2SGreg Roach $router->post(ModulesListsAction::class, '/lists'); 3379f667ff2SGreg Roach $router->get(ModulesMenusPage::class, '/menus'); 3389f667ff2SGreg Roach $router->post(ModulesMenusAction::class, '/menus'); 3399f667ff2SGreg Roach $router->get(ModulesLanguagesPage::class, '/languages'); 3409f667ff2SGreg Roach $router->post(ModulesLanguagesAction::class, '/languages'); 3419f667ff2SGreg Roach $router->get(ModulesReportsPage::class, '/reports'); 3429f667ff2SGreg Roach $router->post(ModulesReportsAction::class, '/reports'); 3439f667ff2SGreg Roach $router->get(ModulesSidebarsPage::class, '/sidebars'); 3449f667ff2SGreg Roach $router->post(ModulesSidebarsAction::class, '/sidebars'); 3459f667ff2SGreg Roach $router->get(ModulesTabsPage::class, '/tabs'); 3469f667ff2SGreg Roach $router->post(ModulesTabsAction::class, '/tabs'); 3479f667ff2SGreg Roach $router->get(ModulesThemesPage::class, '/themes'); 3489f667ff2SGreg Roach $router->post(ModulesThemesAction::class, '/themes'); 3492279b4f3SGreg Roach $router->get('upgrade', '/upgrade', 'Admin\UpgradeController::wizard'); 350c06384d0SGreg Roach $router->post('upgrade-confirm', '/upgrade-confirm', 'Admin\UpgradeController::confirm'); 3512279b4f3SGreg Roach $router->post('upgrade-action', '/upgrade', 'Admin\UpgradeController::step'); 3522279b4f3SGreg Roach $router->get('admin-users', '/admin-users', 'Admin\UsersController::index'); 3532279b4f3SGreg Roach $router->get('admin-users-data', '/admin-users-data', 'Admin\UsersController::data'); 3542279b4f3SGreg Roach $router->get('admin-users-create', '/admin-users-create', 'Admin\UsersController::create'); 3552279b4f3SGreg Roach $router->post('admin-users-create-action', '/admin-users-create', 'Admin\UsersController::save'); 3562279b4f3SGreg Roach $router->get('admin-users-edit', '/admin-users-edit', 'Admin\UsersController::edit'); 3572279b4f3SGreg Roach $router->post('admin-users-update', '/admin-users-edit', 'Admin\UsersController::update'); 358451d4d87SGreg Roach $router->get(SitePreferencesPage::class, '/site-preferences'); 359451d4d87SGreg Roach $router->post(SitePreferencesAction::class, '/site-preferences'); 360451d4d87SGreg Roach $router->get(SiteRegistrationPage::class, '/site-registration'); 361451d4d87SGreg Roach $router->post(SiteRegistrationAction::class, '/site-registration'); 362451d4d87SGreg Roach $router->get(TreePageDefaultEdit::class, '/trees/default-blocks'); 363451d4d87SGreg Roach $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks'); 3646fd01894SGreg Roach $router->get(MergeTreesPage::class, '/trees/merge'); 3656fd01894SGreg Roach $router->post(MergeTreesAction::class, '/trees/merge'); 3666fd01894SGreg Roach $router->post(SynchronizeTrees::class, '/trees/sync'); 3676fd01894SGreg Roach $router->post(DeleteUser::class, '/users/delete/{user_id}'); 368451d4d87SGreg Roach $router->get(UserPageDefaultEdit::class, '/user-page-default-edit'); 369451d4d87SGreg Roach $router->post(UserPageDefaultUpdate::class, '/user-page-default-update'); 370*cccedbe5SGreg Roach 371*cccedbe5SGreg Roach // @deprecated since 2.0.8 - will be removed in 2.1.0 372*cccedbe5SGreg Roach $router->get('modules', '/modules', ModulesAllPage::class); 3732279b4f3SGreg Roach }); 3742279b4f3SGreg Roach 37557796b09SGreg Roach // Manager routes (multiple trees). 3762279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 3772279b4f3SGreg Roach $router->extras([ 378901ade19SGreg Roach 'middleware' => [ 379901ade19SGreg Roach AuthManager::class, 380901ade19SGreg Roach ], 3812279b4f3SGreg Roach ]); 3822279b4f3SGreg Roach 3836fd01894SGreg Roach $router->get(ManageTrees::class, '/trees/manage/{tree}'); 3842279b4f3SGreg Roach }); 3852279b4f3SGreg Roach 3862279b4f3SGreg Roach // Manager routes. 3872279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 3882279b4f3SGreg Roach $router->extras([ 389901ade19SGreg Roach 'middleware' => [ 390901ade19SGreg Roach AuthManager::class, 391901ade19SGreg Roach ], 3922279b4f3SGreg Roach ]); 3932279b4f3SGreg Roach 394451d4d87SGreg Roach $router->get(PendingChangesLogPage::class, '/changes-log'); 395451d4d87SGreg Roach $router->post(PendingChangesLogAction::class, '/changes-log'); 396451d4d87SGreg Roach $router->get(PendingChangesLogData::class, '/changes-data'); 397451d4d87SGreg Roach $router->post(PendingChangesLogDelete::class, '/changes-delete'); 398451d4d87SGreg Roach $router->get(PendingChangesLogDownload::class, '/changes-download'); 3996fd01894SGreg Roach $router->get(CheckTree::class, '/check'); 400451d4d87SGreg Roach $router->get(DataFixChoose::class, '/data-fix'); 401451d4d87SGreg Roach $router->post(DataFixSelect::class, '/data-fix'); 402451d4d87SGreg Roach $router->get(DataFixPage::class, '/data-fix/{data_fix}'); 403451d4d87SGreg Roach $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update'); 404451d4d87SGreg Roach $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all'); 405451d4d87SGreg Roach $router->get(DataFixData::class, '/data-fix/{data_fix}/data'); 406451d4d87SGreg Roach $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview'); 4076fd01894SGreg Roach $router->get(FindDuplicateRecords::class, '/duplicates'); 408451d4d87SGreg Roach $router->get(ExportGedcomPage::class, '/export'); 409451d4d87SGreg Roach $router->post(ExportGedcomClient::class, '/export-client'); 410451d4d87SGreg Roach $router->post(ExportGedcomServer::class, '/export-server'); 4116fd01894SGreg Roach $router->get(ImportGedcomPage::class, '/import'); 4126fd01894SGreg Roach $router->post(ImportGedcomAction::class, '/import'); 413451d4d87SGreg Roach $router->get(MergeRecordsPage::class, '/merge-step1'); 414451d4d87SGreg Roach $router->post(MergeRecordsAction::class, '/merge-step1'); 415451d4d87SGreg Roach $router->get(MergeFactsPage::class, '/merge-step2'); 416451d4d87SGreg Roach $router->post(MergeFactsAction::class, '/merge-step2'); 4176fd01894SGreg Roach $router->get(TreePreferencesPage::class, '/preferences'); 4186fd01894SGreg Roach $router->post(TreePreferencesAction::class, '/preferences'); 4196fd01894SGreg Roach $router->get(RenumberTreePage::class, '/renumber'); 4206fd01894SGreg Roach $router->post(RenumberTreeAction::class, '/renumber'); 421451d4d87SGreg Roach $router->get(TreePageEdit::class, '/tree-page-edit'); 4226fd01894SGreg Roach $router->post(GedcomLoad::class, '/load'); 423451d4d87SGreg Roach $router->post(TreePageUpdate::class, '/tree-page-update'); 424451d4d87SGreg Roach $router->get(TreePageBlockEdit::class, '/tree-page-block-edit'); 425451d4d87SGreg Roach $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit'); 4266fd01894SGreg Roach $router->get(TreePrivacyPage::class, '/privacy'); 4276fd01894SGreg Roach $router->post(TreePrivacyAction::class, '/privacy'); 428451d4d87SGreg Roach $router->get(UnconnectedPage::class, '/unconnected'); 429451d4d87SGreg Roach $router->post(UnconnectedAction::class, '/unconnected'); 4302279b4f3SGreg Roach }); 4312279b4f3SGreg Roach 4322279b4f3SGreg Roach // Moderator routes. 4332279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4342279b4f3SGreg Roach $router->extras([ 435901ade19SGreg Roach 'middleware' => [ 436901ade19SGreg Roach AuthModerator::class, 437901ade19SGreg Roach ], 4382279b4f3SGreg Roach ]); 439451d4d87SGreg Roach $router->post(PendingChangesAcceptTree::class, '/accept'); 440451d4d87SGreg Roach $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}'); 441451d4d87SGreg Roach $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}'); 442451d4d87SGreg Roach $router->get(PendingChanges::class, '/pending'); 443451d4d87SGreg Roach $router->post(PendingChangesRejectTree::class, '/reject'); 444451d4d87SGreg Roach $router->post(PendingChangesRejectRecord::class, '/reject/{xref}'); 445451d4d87SGreg Roach $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}'); 4462279b4f3SGreg Roach }); 4472279b4f3SGreg Roach 4482279b4f3SGreg Roach // Editor routes. 4492279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4502279b4f3SGreg Roach $router->extras([ 451901ade19SGreg Roach 'middleware' => [ 452901ade19SGreg Roach AuthEditor::class, 453901ade19SGreg Roach ], 4542279b4f3SGreg Roach ]); 4552279b4f3SGreg Roach 456451d4d87SGreg Roach $router->get(AddChildToFamilyPage::class, '/add-child-to-family'); 457451d4d87SGreg Roach $router->post(AddChildToFamilyAction::class, '/add-child-to-family'); 458451d4d87SGreg Roach $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}'); 459451d4d87SGreg Roach $router->post(SelectNewFact::class, '/add-fact/{xref}'); 4602279b4f3SGreg Roach $router->get('add-media-file', '/add-media-file', 'EditMediaController::addMediaFile'); 4612279b4f3SGreg Roach $router->post('add-media-file-update', '/add-media-file', 'EditMediaController::addMediaFileAction'); 462451d4d87SGreg Roach $router->get(AddName::class, '/add-name'); 463451d4d87SGreg Roach $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family'); 464451d4d87SGreg Roach $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family'); 465451d4d87SGreg Roach $router->get(ChangeFamilyMembersPage::class, '/change-family-members'); 466451d4d87SGreg Roach $router->post(ChangeFamilyMembersAction::class, '/change-family-members'); 467451d4d87SGreg Roach $router->get(CreateMediaObjectModal::class, '/create-media-object'); 468451d4d87SGreg Roach $router->post(CreateMediaObjectAction::class, '/create-media-object'); 4692279b4f3SGreg Roach $router->post('create-media-from-file', '/create-media-from-file', 'EditMediaController::createMediaObjectFromFileAction'); 470451d4d87SGreg Roach $router->post(CopyFact::class, '/copy/{xref}/{fact_id}'); 471451d4d87SGreg Roach $router->get(CreateNoteModal::class, '/create-note-object'); 472451d4d87SGreg Roach $router->post(CreateNoteAction::class, '/create-note-object'); 473451d4d87SGreg Roach $router->get(CreateRepositoryModal::class, '/create-repository'); 474451d4d87SGreg Roach $router->post(CreateRepositoryAction::class, '/create-repository'); 475451d4d87SGreg Roach $router->get(CreateSourceModal::class, '/create-source'); 476451d4d87SGreg Roach $router->post(CreateSourceAction::class, '/create-source'); 477451d4d87SGreg Roach $router->get(CreateSubmitterModal::class, '/create-submitter'); 478451d4d87SGreg Roach $router->post(CreateSubmitterAction::class, '/create-submitter'); 479451d4d87SGreg Roach $router->post(DeleteRecord::class, '/delete/{xref}'); 480451d4d87SGreg Roach $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}'); 481451d4d87SGreg Roach $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}'); 482451d4d87SGreg Roach $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}'); 4832279b4f3SGreg Roach $router->get('edit-media-file', '/edit-media-file', 'EditMediaController::editMediaFile'); 4842279b4f3SGreg Roach $router->post('edit-media-file-update', '/edit-media-file', 'EditMediaController::editMediaFileAction'); 485316db80eSGreg Roach $router->get('edit-note-object', '/edit-note-object/{xref}', 'EditNoteController::editNoteObject'); 486316db80eSGreg Roach $router->post('edit-note-object-action', '/edit-note-object/{xref}', 'EditNoteController::updateNoteObject'); 487451d4d87SGreg Roach $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}'); 488451d4d87SGreg Roach $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}'); 489451d4d87SGreg Roach $router->get(EditRawRecordPage::class, '/edit-raw/{xref}'); 490451d4d87SGreg Roach $router->post(EditRawRecordAction::class, '/edit-raw/{xref}'); 4912279b4f3SGreg Roach $router->get('link-media-to-individual', '/link-media-to-individual', 'EditMediaController::linkMediaToIndividual'); 4922279b4f3SGreg Roach $router->get('link-media-to-family', '/link-media-to-family', 'EditMediaController::linkMediaToFamily'); 4932279b4f3SGreg Roach $router->get('link-media-to-source', '/link-media-to-source', 'EditMediaController::linkMediaToSource'); 494814c6707SGreg Roach $router->post('link-media-to-record', '/link-media-to-record/{xref}', 'EditMediaController::linkMediaToRecordAction'); 495451d4d87SGreg Roach $router->post(PasteFact::class, '/paste-fact/{xref}'); 496451d4d87SGreg Roach $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}'); 497451d4d87SGreg Roach $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}'); 498451d4d87SGreg Roach $router->get(ReorderMediaPage::class, '/reorder-media/{xref}'); 499451d4d87SGreg Roach $router->post(ReorderMediaAction::class, '/reorder-media/{xref}'); 500451d4d87SGreg Roach $router->get(ReorderNamesPage::class, '/reorder-names/{xref}'); 501451d4d87SGreg Roach $router->post(ReorderNamesAction::class, '/reorder-names/{xref}'); 502451d4d87SGreg Roach $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}'); 503451d4d87SGreg Roach $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}'); 504451d4d87SGreg Roach $router->get(SearchReplacePage::class, '/search-replace'); 505451d4d87SGreg Roach $router->post(SearchReplaceAction::class, '/search-replace'); 506451d4d87SGreg Roach $router->get(AddChildToIndividualPage::class, '/add-child-to-individual'); 507451d4d87SGreg Roach $router->post(AddChildToIndividualAction::class, '/add-child-to-individual'); 508451d4d87SGreg Roach $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual'); 509451d4d87SGreg Roach $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual'); 510451d4d87SGreg Roach $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual'); 511451d4d87SGreg Roach $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual'); 512451d4d87SGreg Roach $router->get(AddUnlinkedPage::class, '/add-unlinked-individual'); 513451d4d87SGreg Roach $router->post(AddUnlinkedAction::class, '/add-unlinked-individual'); 514451d4d87SGreg Roach $router->get(LinkChildToFamilyPage::class, '/link-child-to-family'); 515451d4d87SGreg Roach $router->post(LinkChildToFamilyAction::class, '/link-child-to-family'); 516451d4d87SGreg Roach $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual'); 517451d4d87SGreg Roach $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual'); 518451d4d87SGreg Roach $router->get(EditName::class, '/edit-name/{xref}/{fact_id}'); 5192279b4f3SGreg Roach }); 5202279b4f3SGreg Roach 5218673e6b9SGreg Roach // User routes with a tree. 5222279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 5232279b4f3SGreg Roach $router->extras([ 524901ade19SGreg Roach 'middleware' => [ 5258673e6b9SGreg Roach AuthLoggedIn::class, 526901ade19SGreg Roach ], 5272279b4f3SGreg Roach ]); 5282279b4f3SGreg Roach 529451d4d87SGreg Roach $router->post(MessageSelect::class, '/message-select'); 530451d4d87SGreg Roach $router->get(MessagePage::class, '/message-compose'); 531451d4d87SGreg Roach $router->post(MessageAction::class, '/message-send'); 532451d4d87SGreg Roach $router->get(UserPage::class, '/my-page'); 533451d4d87SGreg Roach $router->get(UserPageBlock::class, '/my-page-block'); 534451d4d87SGreg Roach $router->get(UserPageEdit::class, '/my-page-edit'); 535451d4d87SGreg Roach $router->post(UserPageUpdate::class, '/my-page-edit'); 536451d4d87SGreg Roach $router->get(UserPageBlockEdit::class, '/my-page-block-edit'); 537451d4d87SGreg Roach $router->post(UserPageBlockUpdate::class, '/my-page-block-edit'); 5382279b4f3SGreg Roach }); 5392279b4f3SGreg Roach 5408673e6b9SGreg Roach // User routes without a tree. 5412279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 5422279b4f3SGreg Roach $router->extras([ 543901ade19SGreg Roach 'middleware' => [ 544901ade19SGreg Roach AuthLoggedIn::class, 545901ade19SGreg Roach ], 5462279b4f3SGreg Roach ]); 5472279b4f3SGreg Roach 548451d4d87SGreg Roach $router->get(AccountEdit::class, '/my-account{/tree}'); 549451d4d87SGreg Roach $router->post(AccountUpdate::class, '/my-account{/tree}'); 550451d4d87SGreg Roach $router->post(AccountDelete::class, '/my-account-delete'); 5512279b4f3SGreg Roach }); 5522279b4f3SGreg Roach 553f917a287SGreg Roach // Visitor routes - with an optional tree (for sites with no public trees). 5542279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 555451d4d87SGreg Roach $router->get(LoginPage::class, '/login{/tree}'); 556451d4d87SGreg Roach $router->post(LoginAction::class, '/login{/tree}'); 557451d4d87SGreg Roach $router->get(PasswordRequestPage::class, '/password-request{/tree}'); 558451d4d87SGreg Roach $router->post(PasswordRequestAction::class, '/password-request{/tree}'); 559451d4d87SGreg Roach $router->get(RegisterPage::class, '/register{/tree}'); 560451d4d87SGreg Roach $router->post(RegisterAction::class, '/register{/tree}'); 561451d4d87SGreg Roach $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}'); 562451d4d87SGreg Roach $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}'); 563451d4d87SGreg Roach $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}'); 5642279b4f3SGreg Roach }); 5652279b4f3SGreg Roach 566b45ccc4fSGreg Roach // Visitor routes with a tree. 5672279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 568451d4d87SGreg Roach $router->get(TreePage::class, ''); 5692279b4f3SGreg Roach $router->get('autocomplete-folder', '/autocomplete-folder', 'AutocompleteController::folder'); 5702279b4f3SGreg Roach $router->get('autocomplete-page', '/autocomplete-page', 'AutocompleteController::page'); 5712279b4f3SGreg Roach $router->get('autocomplete-place', '/autocomplete-place', 'AutocompleteController::place'); 572451d4d87SGreg Roach $router->get(CalendarPage::class, '/calendar/{view}'); 573451d4d87SGreg Roach $router->post(CalendarAction::class, '/calendar/{view}'); 574451d4d87SGreg Roach $router->get(CalendarEvents::class, '/calendar-events/{view}'); 575451d4d87SGreg Roach $router->get(ContactPage::class, '/contact'); 576451d4d87SGreg Roach $router->post(ContactAction::class, '/contact'); 577451d4d87SGreg Roach $router->get(FamilyPage::class, '/family/{xref}{/slug}'); 578451d4d87SGreg Roach $router->get(HeaderPage::class, '/header/{xref}{/slug}'); 579451d4d87SGreg Roach $router->get(IndividualPage::class, '/individual/{xref}{/slug}'); 580451d4d87SGreg Roach $router->get(MediaFileThumbnail::class, '/media-thumbnail'); 581451d4d87SGreg Roach $router->get(MediaFileDownload::class, '/media-download'); 582451d4d87SGreg Roach $router->get(MediaPage::class, '/media/{xref}{/slug}'); 583451d4d87SGreg Roach $router->get(NotePage::class, '/note/{xref}{/slug}'); 584451d4d87SGreg Roach $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}'); 585451d4d87SGreg Roach $router->get(RepositoryPage::class, '/repository/{xref}{/slug}'); 586451d4d87SGreg Roach $router->get(ReportListPage::class, '/report'); 587451d4d87SGreg Roach $router->post(ReportListAction::class, '/report'); 588451d4d87SGreg Roach $router->get(ReportSetupPage::class, '/report/{report}'); 589451d4d87SGreg Roach $router->post(ReportSetupAction::class, '/report/{report}'); 590451d4d87SGreg Roach $router->get(ReportGenerate::class, '/report-run/{report}'); 591451d4d87SGreg Roach $router->get(SearchAdvancedPage::class, '/search-advanced'); 592451d4d87SGreg Roach $router->post(SearchAdvancedAction::class, '/search-advanced'); 593451d4d87SGreg Roach $router->get(SearchGeneralPage::class, '/search-general'); 594451d4d87SGreg Roach $router->post(SearchGeneralAction::class, '/search-general'); 595451d4d87SGreg Roach $router->get(SearchPhoneticPage::class, '/search-phonetic'); 596451d4d87SGreg Roach $router->post(SearchPhoneticAction::class, '/search-phonetic'); 597451d4d87SGreg Roach $router->post(SearchQuickAction::class, '/search-quick'); 598451d4d87SGreg Roach $router->post(Select2Family::class, '/select2-family'); 599451d4d87SGreg Roach $router->post(Select2Individual::class, '/select2-individual'); 600451d4d87SGreg Roach $router->post(Select2MediaObject::class, '/select2-media'); 601451d4d87SGreg Roach $router->post(Select2Note::class, '/select2-note'); 602451d4d87SGreg Roach $router->post(Select2Place::class, '/select2-place'); 603451d4d87SGreg Roach $router->post(Select2Source::class, '/select2-source'); 604451d4d87SGreg Roach $router->post(Select2Submitter::class, '/select2-submitter'); 605451d4d87SGreg Roach $router->post(Select2Repository::class, '/select2-repository'); 606451d4d87SGreg Roach $router->get(SourcePage::class, '/source/{xref}{/slug}'); 607451d4d87SGreg Roach $router->get(SubmissionPage::class, '/submission/{xref}{/slug}'); 608451d4d87SGreg Roach $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}'); 609451d4d87SGreg Roach $router->get(TreePageBlock::class, '/tree-page-block'); 610451d4d87SGreg Roach $router->get('example', '/…') 611451d4d87SGreg Roach ->isRoutable(false); 6122279b4f3SGreg Roach }); 6132279b4f3SGreg Roach 614b59ec43dSGreg Roach // Match module routes, with and without a tree. 615b59ec43dSGreg Roach $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class) 6162279b4f3SGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 617b59ec43dSGreg Roach $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class) 618b59ec43dSGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 619b59ec43dSGreg Roach // Generate module routes only. The router cannot distinguish a private tree from no tree. 620451d4d87SGreg Roach $router->get('module', '/module/{module}/{action}{/tree}') 621451d4d87SGreg Roach ->isRoutable(false); 6222279b4f3SGreg Roach 623451d4d87SGreg Roach $router->get(HelpText::class, '/help/{topic}'); 624451d4d87SGreg Roach $router->post(SelectLanguage::class, '/language/{language}'); 625451d4d87SGreg Roach $router->post(Logout::class, '/logout'); 62664c83a78SGreg Roach $router->get(Ping::class, '/ping', Ping::class) 62764c83a78SGreg Roach ->allows(RequestMethodInterface::METHOD_HEAD); 628451d4d87SGreg Roach $router->get(RobotsTxt::class, '/robots.txt'); 629451d4d87SGreg Roach $router->post(SelectTheme::class, '/theme/{theme}'); 630451d4d87SGreg Roach $router->get(HomePage::class, '/'); 6312279b4f3SGreg Roach 63246431a62SGreg Roach // Some URL rewrite configurations will pass everything not in /public to index.php 633451d4d87SGreg Roach $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png'); 634451d4d87SGreg Roach $router->get(FaviconIco::class, '/favicon.ico'); 635901ade19SGreg Roach }); 6362279b4f3SGreg Roach } 6372279b4f3SGreg Roach} 638