12279b4f3SGreg Roach<?php 22279b4f3SGreg Roach 32279b4f3SGreg Roach/** 42279b4f3SGreg Roach * webtrees: online genealogy 590949315SGreg Roach * Copyright (C) 2021 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 1589f7189bSGreg Roach * along with this program. If not, see <https://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\AuthModerator; 292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountDelete; 302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountEdit; 312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountUpdate; 327c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyAction; 337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyPage; 347c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualAction; 357c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualPage; 36ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddMediaFileAction; 37ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddMediaFileModal; 387c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddName; 392279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact; 407c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualAction; 417c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualPage; 427c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyAction; 437c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage; 447c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualAction; 457c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualPage; 467c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedAction; 477c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedPage; 486577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileDownload; 496577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileThumbnail; 5046431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppleTouchIconPng; 5163763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteCitation; 5263763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteFolder; 5363763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompletePlace; 5463763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteSurname; 55e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction; 56e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage; 57b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarAction; 58b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarEvents; 59b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarPage; 6043322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersAction; 6143322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersPage; 626fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckTree; 632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder; 64e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction; 65e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage; 662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact; 68c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateLocationAction; 69c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateLocationModal; 702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction; 71ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectFromFile; 722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal; 732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction; 742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal; 752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction; 762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal; 772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction; 782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal; 79c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionAction; 80c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionModal; 812279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction; 822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal; 832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction; 842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage; 85ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose; 8655749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData; 8755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage; 88ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview; 89ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect; 9055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate; 9155749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll; 922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact; 932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath; 942279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord; 952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction; 962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser; 9755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction; 98a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage; 99ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileAction; 100ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileModal; 1017c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditName; 1029dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNoteAction; 1039dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNotePage; 1042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction; 1052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage; 1062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction; 1072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage; 108c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRecordAction; 109c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRecordPage; 110901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction; 111901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage; 1126d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 1136d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage; 1146d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 1152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage; 11646431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco; 1176fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords; 1184b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaAction; 1194b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaData; 1204b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaPage; 1216fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad; 1222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage; 1231635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage; 1242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText; 1252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage; 1266fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction; 1276fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage; 1284b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsAction; 1294b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsData; 1304b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsPage; 1312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage; 1327c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction; 1337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage; 134ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToFamilyModal; 135ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToIndividualModal; 136ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToRecordAction; 137ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToSourceModal; 1387c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction; 1397c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage; 140e8ded2caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LocationPage; 1412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction; 1422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage; 1432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout; 1448ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaAction; 1458ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaData; 1468ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaPage; 1476fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 14890949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataAdd; 14994e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete; 15090949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataEdit; 15190949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportCSV; 15290949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportGeoJson; 15390949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportAction; 15490949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportPage; 15594e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList; 15690949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataSave; 157040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade; 15846b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload; 15946b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail; 1602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage; 1615bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 1625bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage; 1635bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction; 1645bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage; 1656fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction; 1666fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage; 167e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction; 168e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage; 169e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect; 1702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction; 1719f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings; 1726fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction; 1736fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 1749f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction; 1759f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage; 1769f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction; 1779f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage; 1789f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction; 1799f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage; 180*4da96842SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesCustomTagsAction; 181*4da96842SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesCustomTagsPage; 1829f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction; 1839f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage; 1849f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction; 1859f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage; 1869f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction; 1879f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage; 1889f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction; 1899f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage; 1909f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction; 1919f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage; 192c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapAutocompleteAction; 193c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapAutocompletePage; 194e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksAction; 195e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksPage; 196c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapProvidersAction; 197c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapProvidersPage; 198c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapGeoLocationsAction; 199c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapGeoLocationsPage; 2009f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction; 2019f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage; 2029f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction; 2039f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage; 2048a1a28d7SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSharesAction; 2058a1a28d7SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSharesPage; 2069f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction; 2079f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage; 2089f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction; 2099f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage; 2109f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction; 2119f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage; 2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage; 2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction; 2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage; 2152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction; 2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage; 2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact; 2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges; 2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange; 2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord; 2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree; 2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction; 2232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData; 2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete; 2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload; 2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage; 2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange; 2282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord; 2292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree; 2302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation; 2312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping; 2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction; 2332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage; 2346fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction; 2356fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage; 2362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction; 2372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage; 238901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction; 239901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage; 2402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction; 2412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage; 2422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction; 2432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage; 2442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate; 2452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction; 2462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage; 2472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction; 2482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage; 2492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage; 2502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt; 2512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction; 2522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage; 2532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction; 2542279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage; 2552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction; 2562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage; 2572279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction; 2582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction; 2592279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage; 2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family; 2612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual; 262c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Location; 2632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject; 2642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note; 265a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place; 2662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository; 2672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source; 268c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submission; 2692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter; 2702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree; 2712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage; 2722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact; 2732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme; 2742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction; 2752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData; 2762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete; 2772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload; 2782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage; 279c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction; 280c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage; 281c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction; 282c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage; 2832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage; 2841635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage; 285ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage; 2866fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees; 2878e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage; 2888e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock; 2898e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit; 2908e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate; 2918e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit; 2928e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate; 2938e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit; 2948e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate; 2956fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction; 2966fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage; 2976fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction; 2986fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage; 29996716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction; 30096716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage; 3014b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm; 3024b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage; 3034b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardStep; 3048ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction; 3058ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage; 3064c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddAction; 3074c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddPage; 3084c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditAction; 3094c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditPage; 3104c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData; 3114c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage; 3128e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage; 3138e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock; 3148e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit; 3158e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate; 3168e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit; 3178e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate; 3188e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit; 3198e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate; 3202474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction; 3212474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage; 3222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail; 3232279b4f3SGreg Roach 3242279b4f3SGreg Roach/** 3252279b4f3SGreg Roach * Routing table for web requests 3262279b4f3SGreg Roach */ 3272279b4f3SGreg Roachclass WebRoutes 3282279b4f3SGreg Roach{ 3292279b4f3SGreg Roach public function load(Map $router): void 3302279b4f3SGreg Roach { 331901ade19SGreg Roach $router->attach('', '', static function (Map $router) { 3322279b4f3SGreg Roach // Admin routes. 3332279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 3342279b4f3SGreg Roach $router->extras([ 335901ade19SGreg Roach 'middleware' => [ 336901ade19SGreg Roach AuthAdministrator::class, 337901ade19SGreg Roach ], 3382279b4f3SGreg Roach ]); 3392279b4f3SGreg Roach 340451d4d87SGreg Roach $router->get(ControlPanel::class, ''); 341451d4d87SGreg Roach $router->get(BroadcastPage::class, '/broadcast'); 342451d4d87SGreg Roach $router->post(BroadcastAction::class, '/broadcast'); 343451d4d87SGreg Roach $router->get(CleanDataFolder::class, '/clean'); 344451d4d87SGreg Roach $router->post(DeletePath::class, '/delete-path'); 345451d4d87SGreg Roach $router->get(EmailPreferencesPage::class, '/email'); 346451d4d87SGreg Roach $router->post(EmailPreferencesAction::class, '/email'); 3474b3ef6caSGreg Roach $router->get(FixLevel0MediaPage::class, '/fix-level-0-media'); 3484b3ef6caSGreg Roach $router->post(FixLevel0MediaAction::class, '/fix-level-0-media'); 3494b3ef6caSGreg Roach $router->get(FixLevel0MediaData::class, '/fix-level-0-media-data'); 350451d4d87SGreg Roach $router->get(PhpInformation::class, '/information'); 351451d4d87SGreg Roach $router->get(SiteLogsPage::class, '/logs'); 352451d4d87SGreg Roach $router->post(SiteLogsAction::class, '/logs'); 353451d4d87SGreg Roach $router->get(SiteLogsData::class, '/logs-data'); 354451d4d87SGreg Roach $router->post(SiteLogsDelete::class, '/logs-delete'); 355451d4d87SGreg Roach $router->get(SiteLogsDownload::class, '/logs-download'); 356451d4d87SGreg Roach $router->post(Masquerade::class, '/masquerade/{user_id}'); 357ddb44b4cSGreg Roach $router->get(ManageMediaPage::class, '/media'); 358ddb44b4cSGreg Roach $router->post(ManageMediaAction::class, '/media'); 359ddb44b4cSGreg Roach $router->get(ManageMediaData::class, '/media-data'); 360ddb44b4cSGreg Roach $router->get(UploadMediaPage::class, '/media-upload'); 361ddb44b4cSGreg Roach $router->post(UploadMediaAction::class, '/media-upload'); 36210a93a5fSGreg Roach $router->get(AdminMediaFileDownload::class, '/media-file'); 36310a93a5fSGreg Roach $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail'); 364451d4d87SGreg Roach $router->get(CreateTreePage::class, '/trees/create'); 365451d4d87SGreg Roach $router->post(CreateTreeAction::class, '/trees/create'); 366451d4d87SGreg Roach $router->post(SelectDefaultTree::class, '/trees/default/{tree}'); 367451d4d87SGreg Roach $router->post(DeleteTreeAction::class, '/trees/delete/{tree}'); 3684b3ef6caSGreg Roach $router->get(ImportThumbnailsPage::class, '/webtrees1-thumbs'); 3694b3ef6caSGreg Roach $router->post(ImportThumbnailsAction::class, '/webtrees1-thumbs'); 3704b3ef6caSGreg Roach $router->get(ImportThumbnailsData::class, '/webtrees1-thumbs-data'); 371451d4d87SGreg Roach $router->get(UsersCleanupPage::class, '/users-cleanup'); 372451d4d87SGreg Roach $router->post(UsersCleanupAction::class, '/users-cleanup'); 37390949315SGreg Roach $router->get(MapDataAdd::class, '/map-data-add{/parent_id}'); 37490949315SGreg Roach $router->post(MapDataDelete::class, '/map-data-delete/{place_id}'); 37590949315SGreg Roach $router->get(MapDataEdit::class, '/map-data-edit/{place_id}'); 37690949315SGreg Roach $router->get(MapDataExportCSV::class, '/map-data-csv{/parent_id}'); 37790949315SGreg Roach $router->get(MapDataExportGeoJson::class, '/map-data-geojson{/parent_id}'); 37890949315SGreg Roach $router->get(MapDataImportPage::class, '/locations-import'); 37990949315SGreg Roach $router->post(MapDataImportAction::class, '/locations-import'); 38090949315SGreg Roach $router->get(MapDataList::class, '/map-data{/parent_id}'); 3812a93faa6SGreg Roach $router->post(MapDataSave::class, '/map-data-update'); 3829f667ff2SGreg Roach $router->post(ModuleDeleteSettings::class, '/module-delete-settings'); 3839f667ff2SGreg Roach $router->get(ModulesAllPage::class, '/modules'); 3849f667ff2SGreg Roach $router->post(ModulesAllAction::class, '/modules'); 3859f667ff2SGreg Roach $router->get(ModulesAnalyticsPage::class, '/analytics'); 3869f667ff2SGreg Roach $router->post(ModulesAnalyticsAction::class, '/analytics'); 3879f667ff2SGreg Roach $router->get(ModulesBlocksPage::class, '/blocks'); 3889f667ff2SGreg Roach $router->post(ModulesBlocksAction::class, '/blocks'); 3899f667ff2SGreg Roach $router->get(ModulesChartsPage::class, '/charts'); 3909f667ff2SGreg Roach $router->post(ModulesChartsAction::class, '/charts'); 391*4da96842SGreg Roach $router->get(ModulesCustomTagsPage::class, '/custom-tags'); 392*4da96842SGreg Roach $router->post(ModulesCustomTagsAction::class, '/custom-tags'); 3939f667ff2SGreg Roach $router->get(ModulesDataFixesPage::class, '/data-fixes'); 3949f667ff2SGreg Roach $router->post(ModulesDataFixesAction::class, '/data-fixes'); 3959f667ff2SGreg Roach $router->get(ModulesFootersPage::class, '/footers'); 3969f667ff2SGreg Roach $router->post(ModulesFootersAction::class, '/footers'); 3979f667ff2SGreg Roach $router->get(ModulesHistoricEventsPage::class, '/historic-events'); 3989f667ff2SGreg Roach $router->post(ModulesHistoricEventsAction::class, '/historic-events'); 3999f667ff2SGreg Roach $router->get(ModulesListsPage::class, '/lists'); 4009f667ff2SGreg Roach $router->post(ModulesListsAction::class, '/lists'); 401c9c6f2ecSGreg Roach $router->get(ModulesMapAutocompletePage::class, '/map-autocomplete'); 402c9c6f2ecSGreg Roach $router->post(ModulesMapAutocompleteAction::class, '/map-autocomplete'); 403e3544cb2SGreg Roach $router->get(ModulesMapLinksPage::class, '/map-links'); 404e3544cb2SGreg Roach $router->post(ModulesMapLinksAction::class, '/map-links'); 405c9c6f2ecSGreg Roach $router->get(ModulesMapProvidersPage::class, '/map-providers'); 406c9c6f2ecSGreg Roach $router->post(ModulesMapProvidersAction::class, '/map-providers'); 407c9c6f2ecSGreg Roach $router->get(ModulesMapGeoLocationsPage::class, '/map-searches'); 408c9c6f2ecSGreg Roach $router->post(ModulesMapGeoLocationsAction::class, '/map-searches'); 4099f667ff2SGreg Roach $router->get(ModulesMenusPage::class, '/menus'); 4109f667ff2SGreg Roach $router->post(ModulesMenusAction::class, '/menus'); 4119f667ff2SGreg Roach $router->get(ModulesLanguagesPage::class, '/languages'); 4129f667ff2SGreg Roach $router->post(ModulesLanguagesAction::class, '/languages'); 4139f667ff2SGreg Roach $router->get(ModulesReportsPage::class, '/reports'); 4149f667ff2SGreg Roach $router->post(ModulesReportsAction::class, '/reports'); 4158a1a28d7SGreg Roach $router->get(ModulesSharesPage::class, '/shares'); 4168a1a28d7SGreg Roach $router->post(ModulesSharesAction::class, '/shares'); 4179f667ff2SGreg Roach $router->get(ModulesSidebarsPage::class, '/sidebars'); 4189f667ff2SGreg Roach $router->post(ModulesSidebarsAction::class, '/sidebars'); 4199f667ff2SGreg Roach $router->get(ModulesTabsPage::class, '/tabs'); 4209f667ff2SGreg Roach $router->post(ModulesTabsAction::class, '/tabs'); 4219f667ff2SGreg Roach $router->get(ModulesThemesPage::class, '/themes'); 4229f667ff2SGreg Roach $router->post(ModulesThemesAction::class, '/themes'); 4234b3ef6caSGreg Roach $router->get(UpgradeWizardPage::class, '/upgrade'); 4244b3ef6caSGreg Roach $router->post(UpgradeWizardConfirm::class, '/upgrade-confirm'); 4254b3ef6caSGreg Roach $router->post(UpgradeWizardStep::class, '/upgrade-action'); 4264c3563c0SGreg Roach $router->get(UserListPage::class, '/admin-users'); 4274c3563c0SGreg Roach $router->get(UserListData::class, '/admin-users-data'); 4284c3563c0SGreg Roach $router->get(UserAddPage::class, '/admin-users-create'); 4294c3563c0SGreg Roach $router->post(UserAddAction::class, '/admin-users-create'); 4304c3563c0SGreg Roach $router->get(UserEditPage::class, '/admin-users-edit'); 4314c3563c0SGreg Roach $router->post(UserEditAction::class, '/admin-users-edit'); 432451d4d87SGreg Roach $router->get(SitePreferencesPage::class, '/site-preferences'); 433451d4d87SGreg Roach $router->post(SitePreferencesAction::class, '/site-preferences'); 434451d4d87SGreg Roach $router->get(SiteRegistrationPage::class, '/site-registration'); 435451d4d87SGreg Roach $router->post(SiteRegistrationAction::class, '/site-registration'); 436451d4d87SGreg Roach $router->get(TreePageDefaultEdit::class, '/trees/default-blocks'); 437451d4d87SGreg Roach $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks'); 4386fd01894SGreg Roach $router->get(MergeTreesPage::class, '/trees/merge'); 4396fd01894SGreg Roach $router->post(MergeTreesAction::class, '/trees/merge'); 4406fd01894SGreg Roach $router->post(SynchronizeTrees::class, '/trees/sync'); 4416fd01894SGreg Roach $router->post(DeleteUser::class, '/users/delete/{user_id}'); 442451d4d87SGreg Roach $router->get(UserPageDefaultEdit::class, '/user-page-default-edit'); 443451d4d87SGreg Roach $router->post(UserPageDefaultUpdate::class, '/user-page-default-update'); 4442279b4f3SGreg Roach }); 4452279b4f3SGreg Roach 44657796b09SGreg Roach // Manager routes (multiple trees). 4472279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 4482279b4f3SGreg Roach $router->extras([ 449901ade19SGreg Roach 'middleware' => [ 450901ade19SGreg Roach AuthManager::class, 451901ade19SGreg Roach ], 4522279b4f3SGreg Roach ]); 4532279b4f3SGreg Roach 4546fd01894SGreg Roach $router->get(ManageTrees::class, '/trees/manage/{tree}'); 4552279b4f3SGreg Roach }); 4562279b4f3SGreg Roach 4572279b4f3SGreg Roach // Manager routes. 4582279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4592279b4f3SGreg Roach $router->extras([ 460901ade19SGreg Roach 'middleware' => [ 461901ade19SGreg Roach AuthManager::class, 462901ade19SGreg Roach ], 4632279b4f3SGreg Roach ]); 4642279b4f3SGreg Roach 465451d4d87SGreg Roach $router->get(PendingChangesLogPage::class, '/changes-log'); 466451d4d87SGreg Roach $router->post(PendingChangesLogAction::class, '/changes-log'); 467451d4d87SGreg Roach $router->get(PendingChangesLogData::class, '/changes-data'); 468451d4d87SGreg Roach $router->post(PendingChangesLogDelete::class, '/changes-delete'); 469451d4d87SGreg Roach $router->get(PendingChangesLogDownload::class, '/changes-download'); 4706fd01894SGreg Roach $router->get(CheckTree::class, '/check'); 471451d4d87SGreg Roach $router->get(DataFixChoose::class, '/data-fix'); 472451d4d87SGreg Roach $router->post(DataFixSelect::class, '/data-fix'); 473451d4d87SGreg Roach $router->get(DataFixPage::class, '/data-fix/{data_fix}'); 474451d4d87SGreg Roach $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update'); 475451d4d87SGreg Roach $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all'); 476451d4d87SGreg Roach $router->get(DataFixData::class, '/data-fix/{data_fix}/data'); 477451d4d87SGreg Roach $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview'); 4786fd01894SGreg Roach $router->get(FindDuplicateRecords::class, '/duplicates'); 479451d4d87SGreg Roach $router->get(ExportGedcomPage::class, '/export'); 480451d4d87SGreg Roach $router->post(ExportGedcomClient::class, '/export-client'); 481451d4d87SGreg Roach $router->post(ExportGedcomServer::class, '/export-server'); 4826fd01894SGreg Roach $router->get(ImportGedcomPage::class, '/import'); 4836fd01894SGreg Roach $router->post(ImportGedcomAction::class, '/import'); 484451d4d87SGreg Roach $router->get(MergeRecordsPage::class, '/merge-step1'); 485451d4d87SGreg Roach $router->post(MergeRecordsAction::class, '/merge-step1'); 486451d4d87SGreg Roach $router->get(MergeFactsPage::class, '/merge-step2'); 487451d4d87SGreg Roach $router->post(MergeFactsAction::class, '/merge-step2'); 4886fd01894SGreg Roach $router->get(TreePreferencesPage::class, '/preferences'); 4896fd01894SGreg Roach $router->post(TreePreferencesAction::class, '/preferences'); 4906fd01894SGreg Roach $router->get(RenumberTreePage::class, '/renumber'); 4916fd01894SGreg Roach $router->post(RenumberTreeAction::class, '/renumber'); 492451d4d87SGreg Roach $router->get(TreePageEdit::class, '/tree-page-edit'); 4936fd01894SGreg Roach $router->post(GedcomLoad::class, '/load'); 494451d4d87SGreg Roach $router->post(TreePageUpdate::class, '/tree-page-update'); 495451d4d87SGreg Roach $router->get(TreePageBlockEdit::class, '/tree-page-block-edit'); 496451d4d87SGreg Roach $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit'); 4976fd01894SGreg Roach $router->get(TreePrivacyPage::class, '/privacy'); 4986fd01894SGreg Roach $router->post(TreePrivacyAction::class, '/privacy'); 499451d4d87SGreg Roach $router->get(UnconnectedPage::class, '/unconnected'); 500451d4d87SGreg Roach $router->post(UnconnectedAction::class, '/unconnected'); 5012279b4f3SGreg Roach }); 5022279b4f3SGreg Roach 5032279b4f3SGreg Roach // Moderator routes. 5042279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 5052279b4f3SGreg Roach $router->extras([ 506901ade19SGreg Roach 'middleware' => [ 507901ade19SGreg Roach AuthModerator::class, 508901ade19SGreg Roach ], 5092279b4f3SGreg Roach ]); 510451d4d87SGreg Roach $router->post(PendingChangesAcceptTree::class, '/accept'); 511451d4d87SGreg Roach $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}'); 512451d4d87SGreg Roach $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}'); 513451d4d87SGreg Roach $router->get(PendingChanges::class, '/pending'); 514451d4d87SGreg Roach $router->post(PendingChangesRejectTree::class, '/reject'); 515451d4d87SGreg Roach $router->post(PendingChangesRejectRecord::class, '/reject/{xref}'); 516451d4d87SGreg Roach $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}'); 5172279b4f3SGreg Roach }); 5182279b4f3SGreg Roach 5192279b4f3SGreg Roach // Editor routes. 5202279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 5212279b4f3SGreg Roach $router->extras([ 522901ade19SGreg Roach 'middleware' => [ 523901ade19SGreg Roach AuthEditor::class, 524901ade19SGreg Roach ], 5252279b4f3SGreg Roach ]); 5262279b4f3SGreg Roach 52763763244SGreg Roach $router->get(AutoCompleteCitation::class, '/autocomplete/citation/{query}'); 52863763244SGreg Roach $router->get(AutoCompleteFolder::class, '/autocomplete/folder/{query}'); 52963763244SGreg Roach $router->get(AutoCompletePlace::class, '/autocomplete/place/{query}'); 53063763244SGreg Roach $router->get(AutoCompleteSurname::class, '/autocomplete/surname/{query}'); 531451d4d87SGreg Roach $router->get(AddChildToFamilyPage::class, '/add-child-to-family'); 532451d4d87SGreg Roach $router->post(AddChildToFamilyAction::class, '/add-child-to-family'); 533451d4d87SGreg Roach $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}'); 534451d4d87SGreg Roach $router->post(SelectNewFact::class, '/add-fact/{xref}'); 535ddb44b4cSGreg Roach $router->get(AddMediaFileModal::class, '/add-media-file/{xref}'); 536ddb44b4cSGreg Roach $router->post(AddMediaFileAction::class, '/add-media-file/{xref}'); 537451d4d87SGreg Roach $router->get(AddName::class, '/add-name'); 538451d4d87SGreg Roach $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family'); 539451d4d87SGreg Roach $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family'); 540451d4d87SGreg Roach $router->get(ChangeFamilyMembersPage::class, '/change-family-members'); 541451d4d87SGreg Roach $router->post(ChangeFamilyMembersAction::class, '/change-family-members'); 542c2ed51d1SGreg Roach $router->get(CreateLocationModal::class, '/create-location'); 543c2ed51d1SGreg Roach $router->post(CreateLocationAction::class, '/create-location'); 544451d4d87SGreg Roach $router->get(CreateMediaObjectModal::class, '/create-media-object'); 545451d4d87SGreg Roach $router->post(CreateMediaObjectAction::class, '/create-media-object'); 546ddb44b4cSGreg Roach $router->post(CreateMediaObjectFromFile::class, '/create-media-from-file'); 547451d4d87SGreg Roach $router->post(CopyFact::class, '/copy/{xref}/{fact_id}'); 548451d4d87SGreg Roach $router->get(CreateNoteModal::class, '/create-note-object'); 549451d4d87SGreg Roach $router->post(CreateNoteAction::class, '/create-note-object'); 550451d4d87SGreg Roach $router->get(CreateRepositoryModal::class, '/create-repository'); 551451d4d87SGreg Roach $router->post(CreateRepositoryAction::class, '/create-repository'); 552451d4d87SGreg Roach $router->get(CreateSourceModal::class, '/create-source'); 553451d4d87SGreg Roach $router->post(CreateSourceAction::class, '/create-source'); 554451d4d87SGreg Roach $router->get(CreateSubmitterModal::class, '/create-submitter'); 555451d4d87SGreg Roach $router->post(CreateSubmitterAction::class, '/create-submitter'); 556c2ed51d1SGreg Roach $router->get(CreateSubmissionModal::class, '/create-submission'); 557c2ed51d1SGreg Roach $router->post(CreateSubmissionAction::class, '/create-submission'); 558451d4d87SGreg Roach $router->post(DeleteRecord::class, '/delete/{xref}'); 559451d4d87SGreg Roach $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}'); 560451d4d87SGreg Roach $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}'); 561451d4d87SGreg Roach $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}'); 562ddb44b4cSGreg Roach $router->get(EditMediaFileModal::class, '/edit-media-file/{xref}/{fact_id}'); 563ddb44b4cSGreg Roach $router->post(EditMediaFileAction::class, '/edit-media-file/{xref}/{fact_id}'); 564ddb44b4cSGreg Roach $router->get(EditNotePage::class, '/edit-note-object/{xref}'); 565ddb44b4cSGreg Roach $router->post(EditNoteAction::class, '/edit-note-object/{xref}'); 566451d4d87SGreg Roach $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}'); 567451d4d87SGreg Roach $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}'); 568451d4d87SGreg Roach $router->get(EditRawRecordPage::class, '/edit-raw/{xref}'); 569451d4d87SGreg Roach $router->post(EditRawRecordAction::class, '/edit-raw/{xref}'); 570ddb44b4cSGreg Roach $router->get(LinkMediaToFamilyModal::class, '/link-media-to-family/{xref}'); 571ddb44b4cSGreg Roach $router->get(LinkMediaToIndividualModal::class, '/link-media-to-individual/{xref}'); 572ddb44b4cSGreg Roach $router->get(LinkMediaToSourceModal::class, '/link-media-to-source/{xref}'); 573ddb44b4cSGreg Roach $router->post(LinkMediaToRecordAction::class, '/link-media-to-record/{xref}'); 574c2ed51d1SGreg Roach $router->get(EditRecordPage::class, '/edit-record/{xref}'); 575c2ed51d1SGreg Roach $router->post(EditRecordAction::class, '/update-record/{xref}'); 576451d4d87SGreg Roach $router->post(PasteFact::class, '/paste-fact/{xref}'); 577451d4d87SGreg Roach $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}'); 578451d4d87SGreg Roach $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}'); 579451d4d87SGreg Roach $router->get(ReorderMediaPage::class, '/reorder-media/{xref}'); 580451d4d87SGreg Roach $router->post(ReorderMediaAction::class, '/reorder-media/{xref}'); 581451d4d87SGreg Roach $router->get(ReorderNamesPage::class, '/reorder-names/{xref}'); 582451d4d87SGreg Roach $router->post(ReorderNamesAction::class, '/reorder-names/{xref}'); 583451d4d87SGreg Roach $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}'); 584451d4d87SGreg Roach $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}'); 585451d4d87SGreg Roach $router->get(SearchReplacePage::class, '/search-replace'); 586451d4d87SGreg Roach $router->post(SearchReplaceAction::class, '/search-replace'); 587451d4d87SGreg Roach $router->get(AddChildToIndividualPage::class, '/add-child-to-individual'); 588451d4d87SGreg Roach $router->post(AddChildToIndividualAction::class, '/add-child-to-individual'); 589451d4d87SGreg Roach $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual'); 590451d4d87SGreg Roach $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual'); 591451d4d87SGreg Roach $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual'); 592451d4d87SGreg Roach $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual'); 593451d4d87SGreg Roach $router->get(AddUnlinkedPage::class, '/add-unlinked-individual'); 594451d4d87SGreg Roach $router->post(AddUnlinkedAction::class, '/add-unlinked-individual'); 595451d4d87SGreg Roach $router->get(LinkChildToFamilyPage::class, '/link-child-to-family'); 596451d4d87SGreg Roach $router->post(LinkChildToFamilyAction::class, '/link-child-to-family'); 597451d4d87SGreg Roach $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual'); 598451d4d87SGreg Roach $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual'); 599451d4d87SGreg Roach $router->get(EditName::class, '/edit-name/{xref}/{fact_id}'); 6002279b4f3SGreg Roach }); 6012279b4f3SGreg Roach 6028673e6b9SGreg Roach // User routes with a tree. 6032279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 6042279b4f3SGreg Roach $router->extras([ 605901ade19SGreg Roach 'middleware' => [ 6068673e6b9SGreg Roach AuthLoggedIn::class, 607901ade19SGreg Roach ], 6082279b4f3SGreg Roach ]); 6092279b4f3SGreg Roach 610451d4d87SGreg Roach $router->post(MessageSelect::class, '/message-select'); 611451d4d87SGreg Roach $router->get(MessagePage::class, '/message-compose'); 612451d4d87SGreg Roach $router->post(MessageAction::class, '/message-send'); 613451d4d87SGreg Roach $router->get(UserPage::class, '/my-page'); 614451d4d87SGreg Roach $router->get(UserPageBlock::class, '/my-page-block'); 615451d4d87SGreg Roach $router->get(UserPageEdit::class, '/my-page-edit'); 616451d4d87SGreg Roach $router->post(UserPageUpdate::class, '/my-page-edit'); 617451d4d87SGreg Roach $router->get(UserPageBlockEdit::class, '/my-page-block-edit'); 618451d4d87SGreg Roach $router->post(UserPageBlockUpdate::class, '/my-page-block-edit'); 6192279b4f3SGreg Roach }); 6202279b4f3SGreg Roach 6218673e6b9SGreg Roach // User routes without a tree. 6222279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 6232279b4f3SGreg Roach $router->extras([ 624901ade19SGreg Roach 'middleware' => [ 625901ade19SGreg Roach AuthLoggedIn::class, 626901ade19SGreg Roach ], 6272279b4f3SGreg Roach ]); 6282279b4f3SGreg Roach 629451d4d87SGreg Roach $router->get(AccountEdit::class, '/my-account{/tree}'); 630451d4d87SGreg Roach $router->post(AccountUpdate::class, '/my-account{/tree}'); 631451d4d87SGreg Roach $router->post(AccountDelete::class, '/my-account-delete'); 6322279b4f3SGreg Roach }); 6332279b4f3SGreg Roach 634f917a287SGreg Roach // Visitor routes - with an optional tree (for sites with no public trees). 6352279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 636451d4d87SGreg Roach $router->get(LoginPage::class, '/login{/tree}'); 637451d4d87SGreg Roach $router->post(LoginAction::class, '/login{/tree}'); 638451d4d87SGreg Roach $router->get(PasswordRequestPage::class, '/password-request{/tree}'); 639451d4d87SGreg Roach $router->post(PasswordRequestAction::class, '/password-request{/tree}'); 640451d4d87SGreg Roach $router->get(RegisterPage::class, '/register{/tree}'); 641451d4d87SGreg Roach $router->post(RegisterAction::class, '/register{/tree}'); 642451d4d87SGreg Roach $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}'); 643451d4d87SGreg Roach $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}'); 644451d4d87SGreg Roach $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}'); 6452279b4f3SGreg Roach }); 6462279b4f3SGreg Roach 647b45ccc4fSGreg Roach // Visitor routes with a tree. 6482279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 649451d4d87SGreg Roach $router->get(TreePage::class, ''); 650451d4d87SGreg Roach $router->get(CalendarPage::class, '/calendar/{view}'); 651451d4d87SGreg Roach $router->post(CalendarAction::class, '/calendar/{view}'); 652451d4d87SGreg Roach $router->get(CalendarEvents::class, '/calendar-events/{view}'); 653451d4d87SGreg Roach $router->get(ContactPage::class, '/contact'); 654451d4d87SGreg Roach $router->post(ContactAction::class, '/contact'); 655451d4d87SGreg Roach $router->get(FamilyPage::class, '/family/{xref}{/slug}'); 656451d4d87SGreg Roach $router->get(HeaderPage::class, '/header/{xref}{/slug}'); 657451d4d87SGreg Roach $router->get(IndividualPage::class, '/individual/{xref}{/slug}'); 658e8ded2caSGreg Roach $router->get(LocationPage::class, '/location/{xref}{/slug}'); 659451d4d87SGreg Roach $router->get(MediaFileThumbnail::class, '/media-thumbnail'); 660451d4d87SGreg Roach $router->get(MediaFileDownload::class, '/media-download'); 661451d4d87SGreg Roach $router->get(MediaPage::class, '/media/{xref}{/slug}'); 662451d4d87SGreg Roach $router->get(NotePage::class, '/note/{xref}{/slug}'); 663451d4d87SGreg Roach $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}'); 664451d4d87SGreg Roach $router->get(RepositoryPage::class, '/repository/{xref}{/slug}'); 665451d4d87SGreg Roach $router->get(ReportListPage::class, '/report'); 666451d4d87SGreg Roach $router->post(ReportListAction::class, '/report'); 667451d4d87SGreg Roach $router->get(ReportSetupPage::class, '/report/{report}'); 668451d4d87SGreg Roach $router->post(ReportSetupAction::class, '/report/{report}'); 669451d4d87SGreg Roach $router->get(ReportGenerate::class, '/report-run/{report}'); 670451d4d87SGreg Roach $router->get(SearchAdvancedPage::class, '/search-advanced'); 671451d4d87SGreg Roach $router->post(SearchAdvancedAction::class, '/search-advanced'); 672451d4d87SGreg Roach $router->get(SearchGeneralPage::class, '/search-general'); 673451d4d87SGreg Roach $router->post(SearchGeneralAction::class, '/search-general'); 674451d4d87SGreg Roach $router->get(SearchPhoneticPage::class, '/search-phonetic'); 675451d4d87SGreg Roach $router->post(SearchPhoneticAction::class, '/search-phonetic'); 676451d4d87SGreg Roach $router->post(SearchQuickAction::class, '/search-quick'); 677451d4d87SGreg Roach $router->post(Select2Family::class, '/select2-family'); 678451d4d87SGreg Roach $router->post(Select2Individual::class, '/select2-individual'); 679c2ed51d1SGreg Roach $router->post(Select2Location::class, '/select2-location'); 680451d4d87SGreg Roach $router->post(Select2MediaObject::class, '/select2-media'); 681451d4d87SGreg Roach $router->post(Select2Note::class, '/select2-note'); 682451d4d87SGreg Roach $router->post(Select2Place::class, '/select2-place'); 683451d4d87SGreg Roach $router->post(Select2Source::class, '/select2-source'); 684c2ed51d1SGreg Roach $router->post(Select2Submission::class, '/select2-submission'); 685451d4d87SGreg Roach $router->post(Select2Submitter::class, '/select2-submitter'); 686451d4d87SGreg Roach $router->post(Select2Repository::class, '/select2-repository'); 687451d4d87SGreg Roach $router->get(SourcePage::class, '/source/{xref}{/slug}'); 688451d4d87SGreg Roach $router->get(SubmissionPage::class, '/submission/{xref}{/slug}'); 689451d4d87SGreg Roach $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}'); 690451d4d87SGreg Roach $router->get(TreePageBlock::class, '/tree-page-block'); 691451d4d87SGreg Roach $router->get('example', '/…') 692451d4d87SGreg Roach ->isRoutable(false); 6932279b4f3SGreg Roach }); 6942279b4f3SGreg Roach 695b59ec43dSGreg Roach // Match module routes, with and without a tree. 696b59ec43dSGreg Roach $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class) 6972279b4f3SGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 698b59ec43dSGreg Roach $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class) 699b59ec43dSGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 700b59ec43dSGreg Roach // Generate module routes only. The router cannot distinguish a private tree from no tree. 701451d4d87SGreg Roach $router->get('module', '/module/{module}/{action}{/tree}') 702451d4d87SGreg Roach ->isRoutable(false); 7032279b4f3SGreg Roach 704451d4d87SGreg Roach $router->get(HelpText::class, '/help/{topic}'); 705451d4d87SGreg Roach $router->post(SelectLanguage::class, '/language/{language}'); 706451d4d87SGreg Roach $router->post(Logout::class, '/logout'); 70764c83a78SGreg Roach $router->get(Ping::class, '/ping', Ping::class) 70864c83a78SGreg Roach ->allows(RequestMethodInterface::METHOD_HEAD); 709451d4d87SGreg Roach $router->get(RobotsTxt::class, '/robots.txt'); 710451d4d87SGreg Roach $router->post(SelectTheme::class, '/theme/{theme}'); 711451d4d87SGreg Roach $router->get(HomePage::class, '/'); 7122279b4f3SGreg Roach 71346431a62SGreg Roach // Some URL rewrite configurations will pass everything not in /public to index.php 714451d4d87SGreg Roach $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png'); 715451d4d87SGreg Roach $router->get(FaviconIco::class, '/favicon.ico'); 716901ade19SGreg Roach }); 7172279b4f3SGreg Roach } 7182279b4f3SGreg Roach} 719