12279b4f3SGreg Roach<?php 22279b4f3SGreg Roach 32279b4f3SGreg Roach/** 42279b4f3SGreg Roach * webtrees: online genealogy 5*d11be702SGreg Roach * Copyright (C) 2023 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; 2376d39c55SGreg Roachuse Aura\Router\Route; 242279b4f3SGreg Roachuse Fig\Http\Message\RequestMethodInterface; 252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthAdministrator; 262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthEditor; 272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthLoggedIn; 282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthManager; 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; 37ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddMediaFileAction; 38ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddMediaFileModal; 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; 50225b5f81SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdsTxt; 51225b5f81SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppAdsTxt; 5246431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppleTouchIconPng; 5363763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteCitation; 5463763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteFolder; 5563763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompletePlace; 5663763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteSurname; 57e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction; 58e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage; 59d36fce8cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BrowserconfigXml; 60b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarAction; 61b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarEvents; 62b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarPage; 6343322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersAction; 6443322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersPage; 65bfd5083cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckForNewVersionNow; 666fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckTree; 672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder; 68e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction; 69e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage; 702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact; 72c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateLocationAction; 73c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateLocationModal; 742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction; 75ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectFromFile; 762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal; 772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction; 782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal; 792279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction; 802279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal; 812279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction; 822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal; 83c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionAction; 84c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionModal; 852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction; 862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal; 872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction; 882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage; 89ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose; 9055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData; 9155749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage; 92ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview; 93ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect; 9455749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate; 9555749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll; 962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact; 972279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath; 982279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord; 992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction; 1002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser; 10155749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction; 102a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage; 103ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileAction; 104ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileModal; 1059dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNoteAction; 1069dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNotePage; 1072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction; 1082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage; 1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction; 1102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage; 111c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRecordAction; 112c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRecordPage; 113901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction; 114901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage; 1159927f70fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmptyClipboard; 1166d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 1176d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage; 1186d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 1192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage; 12046431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco; 1216fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords; 1224b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaAction; 1234b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaData; 1244b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaPage; 1256fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad; 1262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage; 1271635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage; 1282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText; 1292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage; 1306fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction; 1316fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage; 1322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage; 1337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction; 1347c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage; 135ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToFamilyModal; 136ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToIndividualModal; 137ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToRecordAction; 138ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToSourceModal; 1397c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction; 1407c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage; 141e8ded2caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LocationPage; 1422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction; 1432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage; 1442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout; 1458ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaAction; 1468ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaData; 1478ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaPage; 1486fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees; 14990949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataAdd; 15094e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete; 1517b5ff3baSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDeleteUnused; 15290949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataEdit; 15390949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportCSV; 15490949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportGeoJson; 15590949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportAction; 15690949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportPage; 15794e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList; 15890949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataSave; 159040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade; 16046b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload; 16146b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail; 1622279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage; 1635bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 1645bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage; 1655bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction; 1665bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage; 1676fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction; 1686fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage; 169e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction; 170e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage; 171e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect; 1722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction; 1739f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings; 1746fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction; 1756fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage; 1769f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction; 1779f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage; 1789f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction; 1799f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage; 1809f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction; 1819f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage; 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; 194f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapGeoLocationsAction; 195f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapGeoLocationsPage; 196e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksAction; 197e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksPage; 198c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapProvidersAction; 199c9c6f2ecSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapProvidersPage; 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; 241d178350fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaFilesAction; 242d178350fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaFilesPage; 2432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage; 2442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction; 2452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage; 2462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate; 2472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction; 2482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage; 2492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction; 2502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage; 2512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage; 2522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt; 2532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction; 2542279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage; 2552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction; 2562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage; 2572279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction; 2582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage; 2592279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction; 2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction; 2612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage; 262f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree; 263f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage; 264f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact; 265f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme; 266701f5d18SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SharedNotePage; 267f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction; 268f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData; 269f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete; 270f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload; 271f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage; 272f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction; 273f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage; 274f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction; 275f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage; 276f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteTagsAction; 277f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteTagsPage; 278f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage; 279f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage; 280f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage; 281f0c88a96SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees; 282c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectFamily; 283c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectIndividual; 284c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectLocation; 285c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectMediaObject; 286c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectNote; 287c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectPlace; 288c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectRepository; 289701f5d18SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectSharedNote; 290c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectSource; 291c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectSubmission; 292c8d78f19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TomSelectSubmitter; 2938e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage; 2948e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock; 2958e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit; 2968e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate; 2978e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit; 2988e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate; 2998e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit; 3008e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate; 3016fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction; 3026fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage; 3036fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction; 3046fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage; 30596716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction; 30696716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage; 3074b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm; 3084b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage; 3094b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardStep; 3108ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction; 3118ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage; 3124c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddAction; 3134c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddPage; 3144c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditAction; 3154c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditPage; 3164c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData; 3174c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage; 3188e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage; 3198e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock; 3208e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit; 3218e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate; 3228e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit; 3238e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate; 3248e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit; 3258e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate; 3262474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction; 3272474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage; 3282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail; 329439bf5cfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\WebmanifestJson; 3302279b4f3SGreg Roach 3312279b4f3SGreg Roach/** 3322279b4f3SGreg Roach * Routing table for web requests 3332279b4f3SGreg Roach */ 3342279b4f3SGreg Roachclass WebRoutes 3352279b4f3SGreg Roach{ 336ac701fbdSGreg Roach /** 33776d39c55SGreg Roach * @param Map<Route> $router 338ac701fbdSGreg Roach * 339ac701fbdSGreg Roach * @return void 340ac701fbdSGreg Roach */ 3412279b4f3SGreg Roach public function load(Map $router): void 3422279b4f3SGreg Roach { 343901ade19SGreg Roach $router->attach('', '', static function (Map $router) { 3442279b4f3SGreg Roach // Admin routes. 3452279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 3462279b4f3SGreg Roach $router->extras([ 347901ade19SGreg Roach 'middleware' => [ 348901ade19SGreg Roach AuthAdministrator::class, 349901ade19SGreg Roach ], 3502279b4f3SGreg Roach ]); 3512279b4f3SGreg Roach 352451d4d87SGreg Roach $router->get(ControlPanel::class, ''); 353bfd5083cSGreg Roach $router->post(CheckForNewVersionNow::class, '/check-now'); 354a46dd5a6SGreg Roach $router->get(BroadcastPage::class, '/broadcast/{to}'); 355a46dd5a6SGreg Roach $router->post(BroadcastAction::class, '/broadcast/{to}'); 356451d4d87SGreg Roach $router->get(CleanDataFolder::class, '/clean'); 357451d4d87SGreg Roach $router->post(DeletePath::class, '/delete-path'); 358451d4d87SGreg Roach $router->get(EmailPreferencesPage::class, '/email'); 359451d4d87SGreg Roach $router->post(EmailPreferencesAction::class, '/email'); 3604b3ef6caSGreg Roach $router->get(FixLevel0MediaPage::class, '/fix-level-0-media'); 3614b3ef6caSGreg Roach $router->post(FixLevel0MediaAction::class, '/fix-level-0-media'); 3624b3ef6caSGreg Roach $router->get(FixLevel0MediaData::class, '/fix-level-0-media-data'); 363451d4d87SGreg Roach $router->get(PhpInformation::class, '/information'); 364451d4d87SGreg Roach $router->get(SiteLogsPage::class, '/logs'); 365451d4d87SGreg Roach $router->post(SiteLogsAction::class, '/logs'); 366451d4d87SGreg Roach $router->get(SiteLogsData::class, '/logs-data'); 367451d4d87SGreg Roach $router->post(SiteLogsDelete::class, '/logs-delete'); 368451d4d87SGreg Roach $router->get(SiteLogsDownload::class, '/logs-download'); 369451d4d87SGreg Roach $router->post(Masquerade::class, '/masquerade/{user_id}'); 370ddb44b4cSGreg Roach $router->get(ManageMediaPage::class, '/media'); 371ddb44b4cSGreg Roach $router->post(ManageMediaAction::class, '/media'); 372ddb44b4cSGreg Roach $router->get(ManageMediaData::class, '/media-data'); 373ddb44b4cSGreg Roach $router->get(UploadMediaPage::class, '/media-upload'); 374ddb44b4cSGreg Roach $router->post(UploadMediaAction::class, '/media-upload'); 37510a93a5fSGreg Roach $router->get(AdminMediaFileDownload::class, '/media-file'); 37610a93a5fSGreg Roach $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail'); 377451d4d87SGreg Roach $router->get(CreateTreePage::class, '/trees/create'); 378451d4d87SGreg Roach $router->post(CreateTreeAction::class, '/trees/create'); 379451d4d87SGreg Roach $router->post(SelectDefaultTree::class, '/trees/default/{tree}'); 380451d4d87SGreg Roach $router->post(DeleteTreeAction::class, '/trees/delete/{tree}'); 381451d4d87SGreg Roach $router->get(UsersCleanupPage::class, '/users-cleanup'); 382451d4d87SGreg Roach $router->post(UsersCleanupAction::class, '/users-cleanup'); 38390949315SGreg Roach $router->get(MapDataAdd::class, '/map-data-add{/parent_id}'); 3840e54db38SGreg Roach $router->post(MapDataDelete::class, '/map-data-delete/{location_id}'); 3857b5ff3baSGreg Roach $router->post(MapDataDeleteUnused::class, '/map-data-delete-unused'); 3860e54db38SGreg Roach $router->get(MapDataEdit::class, '/map-data-edit/{location_id}'); 38790949315SGreg Roach $router->get(MapDataExportCSV::class, '/map-data-csv{/parent_id}'); 38890949315SGreg Roach $router->get(MapDataExportGeoJson::class, '/map-data-geojson{/parent_id}'); 38990949315SGreg Roach $router->get(MapDataImportPage::class, '/locations-import'); 39090949315SGreg Roach $router->post(MapDataImportAction::class, '/locations-import'); 39190949315SGreg Roach $router->get(MapDataList::class, '/map-data{/parent_id}'); 3922a93faa6SGreg Roach $router->post(MapDataSave::class, '/map-data-update'); 3939f667ff2SGreg Roach $router->post(ModuleDeleteSettings::class, '/module-delete-settings'); 3949f667ff2SGreg Roach $router->get(ModulesAllPage::class, '/modules'); 3959f667ff2SGreg Roach $router->post(ModulesAllAction::class, '/modules'); 3969f667ff2SGreg Roach $router->get(ModulesAnalyticsPage::class, '/analytics'); 3979f667ff2SGreg Roach $router->post(ModulesAnalyticsAction::class, '/analytics'); 3989f667ff2SGreg Roach $router->get(ModulesBlocksPage::class, '/blocks'); 3999f667ff2SGreg Roach $router->post(ModulesBlocksAction::class, '/blocks'); 4009f667ff2SGreg Roach $router->get(ModulesChartsPage::class, '/charts'); 4019f667ff2SGreg Roach $router->post(ModulesChartsAction::class, '/charts'); 4029f667ff2SGreg Roach $router->get(ModulesDataFixesPage::class, '/data-fixes'); 4039f667ff2SGreg Roach $router->post(ModulesDataFixesAction::class, '/data-fixes'); 4049f667ff2SGreg Roach $router->get(ModulesFootersPage::class, '/footers'); 4059f667ff2SGreg Roach $router->post(ModulesFootersAction::class, '/footers'); 4069f667ff2SGreg Roach $router->get(ModulesHistoricEventsPage::class, '/historic-events'); 4079f667ff2SGreg Roach $router->post(ModulesHistoricEventsAction::class, '/historic-events'); 4089f667ff2SGreg Roach $router->get(ModulesListsPage::class, '/lists'); 4099f667ff2SGreg Roach $router->post(ModulesListsAction::class, '/lists'); 410c9c6f2ecSGreg Roach $router->get(ModulesMapAutocompletePage::class, '/map-autocomplete'); 411c9c6f2ecSGreg Roach $router->post(ModulesMapAutocompleteAction::class, '/map-autocomplete'); 412e3544cb2SGreg Roach $router->get(ModulesMapLinksPage::class, '/map-links'); 413e3544cb2SGreg Roach $router->post(ModulesMapLinksAction::class, '/map-links'); 414c9c6f2ecSGreg Roach $router->get(ModulesMapProvidersPage::class, '/map-providers'); 415c9c6f2ecSGreg Roach $router->post(ModulesMapProvidersAction::class, '/map-providers'); 416c9c6f2ecSGreg Roach $router->get(ModulesMapGeoLocationsPage::class, '/map-searches'); 417c9c6f2ecSGreg Roach $router->post(ModulesMapGeoLocationsAction::class, '/map-searches'); 4189f667ff2SGreg Roach $router->get(ModulesMenusPage::class, '/menus'); 4199f667ff2SGreg Roach $router->post(ModulesMenusAction::class, '/menus'); 4209f667ff2SGreg Roach $router->get(ModulesLanguagesPage::class, '/languages'); 4219f667ff2SGreg Roach $router->post(ModulesLanguagesAction::class, '/languages'); 4229f667ff2SGreg Roach $router->get(ModulesReportsPage::class, '/reports'); 4239f667ff2SGreg Roach $router->post(ModulesReportsAction::class, '/reports'); 4248a1a28d7SGreg Roach $router->get(ModulesSharesPage::class, '/shares'); 4258a1a28d7SGreg Roach $router->post(ModulesSharesAction::class, '/shares'); 4269f667ff2SGreg Roach $router->get(ModulesSidebarsPage::class, '/sidebars'); 4279f667ff2SGreg Roach $router->post(ModulesSidebarsAction::class, '/sidebars'); 4289f667ff2SGreg Roach $router->get(ModulesTabsPage::class, '/tabs'); 4299f667ff2SGreg Roach $router->post(ModulesTabsAction::class, '/tabs'); 4309f667ff2SGreg Roach $router->get(ModulesThemesPage::class, '/themes'); 4319f667ff2SGreg Roach $router->post(ModulesThemesAction::class, '/themes'); 4324b3ef6caSGreg Roach $router->get(UpgradeWizardPage::class, '/upgrade'); 4334b3ef6caSGreg Roach $router->post(UpgradeWizardConfirm::class, '/upgrade-confirm'); 4344b3ef6caSGreg Roach $router->post(UpgradeWizardStep::class, '/upgrade-action'); 4354c3563c0SGreg Roach $router->get(UserListPage::class, '/admin-users'); 4364c3563c0SGreg Roach $router->get(UserListData::class, '/admin-users-data'); 4374c3563c0SGreg Roach $router->get(UserAddPage::class, '/admin-users-create'); 4384c3563c0SGreg Roach $router->post(UserAddAction::class, '/admin-users-create'); 4394c3563c0SGreg Roach $router->get(UserEditPage::class, '/admin-users-edit'); 4404c3563c0SGreg Roach $router->post(UserEditAction::class, '/admin-users-edit'); 441451d4d87SGreg Roach $router->get(SitePreferencesPage::class, '/site-preferences'); 442451d4d87SGreg Roach $router->post(SitePreferencesAction::class, '/site-preferences'); 443451d4d87SGreg Roach $router->get(SiteRegistrationPage::class, '/site-registration'); 444451d4d87SGreg Roach $router->post(SiteRegistrationAction::class, '/site-registration'); 445c8183f29SGreg Roach $router->get(SiteTagsPage::class, '/tags'); 446c8183f29SGreg Roach $router->post(SiteTagsAction::class, '/tags'); 447451d4d87SGreg Roach $router->get(TreePageDefaultEdit::class, '/trees/default-blocks'); 448451d4d87SGreg Roach $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks'); 4496fd01894SGreg Roach $router->get(MergeTreesPage::class, '/trees/merge'); 4506fd01894SGreg Roach $router->post(MergeTreesAction::class, '/trees/merge'); 4516fd01894SGreg Roach $router->post(SynchronizeTrees::class, '/trees/sync'); 4526fd01894SGreg Roach $router->post(DeleteUser::class, '/users/delete/{user_id}'); 453451d4d87SGreg Roach $router->get(UserPageDefaultEdit::class, '/user-page-default-edit'); 454451d4d87SGreg Roach $router->post(UserPageDefaultUpdate::class, '/user-page-default-update'); 4552279b4f3SGreg Roach }); 4562279b4f3SGreg Roach 45757796b09SGreg Roach // Manager routes (multiple trees). 4582279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 4592279b4f3SGreg Roach $router->extras([ 460901ade19SGreg Roach 'middleware' => [ 461901ade19SGreg Roach AuthManager::class, 462901ade19SGreg Roach ], 4632279b4f3SGreg Roach ]); 4642279b4f3SGreg Roach 4656fd01894SGreg Roach $router->get(ManageTrees::class, '/trees/manage/{tree}'); 4662279b4f3SGreg Roach }); 4672279b4f3SGreg Roach 4682279b4f3SGreg Roach // Manager routes. 4692279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4702279b4f3SGreg Roach $router->extras([ 471901ade19SGreg Roach 'middleware' => [ 472901ade19SGreg Roach AuthManager::class, 473901ade19SGreg Roach ], 4742279b4f3SGreg Roach ]); 4752279b4f3SGreg Roach 476451d4d87SGreg Roach $router->get(PendingChangesLogPage::class, '/changes-log'); 477451d4d87SGreg Roach $router->post(PendingChangesLogAction::class, '/changes-log'); 478451d4d87SGreg Roach $router->get(PendingChangesLogData::class, '/changes-data'); 479451d4d87SGreg Roach $router->post(PendingChangesLogDelete::class, '/changes-delete'); 480451d4d87SGreg Roach $router->get(PendingChangesLogDownload::class, '/changes-download'); 4816fd01894SGreg Roach $router->get(CheckTree::class, '/check'); 482451d4d87SGreg Roach $router->get(DataFixChoose::class, '/data-fix'); 483451d4d87SGreg Roach $router->post(DataFixSelect::class, '/data-fix'); 484451d4d87SGreg Roach $router->get(DataFixPage::class, '/data-fix/{data_fix}'); 485451d4d87SGreg Roach $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update'); 486451d4d87SGreg Roach $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all'); 487451d4d87SGreg Roach $router->get(DataFixData::class, '/data-fix/{data_fix}/data'); 488451d4d87SGreg Roach $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview'); 4896fd01894SGreg Roach $router->get(FindDuplicateRecords::class, '/duplicates'); 490451d4d87SGreg Roach $router->get(ExportGedcomPage::class, '/export'); 491451d4d87SGreg Roach $router->post(ExportGedcomClient::class, '/export-client'); 492451d4d87SGreg Roach $router->post(ExportGedcomServer::class, '/export-server'); 4936fd01894SGreg Roach $router->get(ImportGedcomPage::class, '/import'); 4946fd01894SGreg Roach $router->post(ImportGedcomAction::class, '/import'); 495451d4d87SGreg Roach $router->get(MergeRecordsPage::class, '/merge-step1'); 496451d4d87SGreg Roach $router->post(MergeRecordsAction::class, '/merge-step1'); 497451d4d87SGreg Roach $router->get(MergeFactsPage::class, '/merge-step2'); 498451d4d87SGreg Roach $router->post(MergeFactsAction::class, '/merge-step2'); 4996fd01894SGreg Roach $router->get(TreePreferencesPage::class, '/preferences'); 5006fd01894SGreg Roach $router->post(TreePreferencesAction::class, '/preferences'); 5016fd01894SGreg Roach $router->get(RenumberTreePage::class, '/renumber'); 5026fd01894SGreg Roach $router->post(RenumberTreeAction::class, '/renumber'); 503451d4d87SGreg Roach $router->get(TreePageEdit::class, '/tree-page-edit'); 5046fd01894SGreg Roach $router->post(GedcomLoad::class, '/load'); 505451d4d87SGreg Roach $router->post(TreePageUpdate::class, '/tree-page-update'); 506b55cbc6bSGreg Roach $router->get(TreePageBlockEdit::class, '/tree-page-block-edit/{block_id}'); 507b55cbc6bSGreg Roach $router->post(TreePageBlockUpdate::class, '/tree-page-block-update/{block_id}'); 5086fd01894SGreg Roach $router->get(TreePrivacyPage::class, '/privacy'); 5096fd01894SGreg Roach $router->post(TreePrivacyAction::class, '/privacy'); 510451d4d87SGreg Roach $router->get(UnconnectedPage::class, '/unconnected'); 511451d4d87SGreg Roach $router->post(UnconnectedAction::class, '/unconnected'); 5122279b4f3SGreg Roach }); 5132279b4f3SGreg Roach 5142279b4f3SGreg Roach // Moderator routes. 5152279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 5162279b4f3SGreg Roach $router->extras([ 517901ade19SGreg Roach 'middleware' => [ 518901ade19SGreg Roach AuthModerator::class, 519901ade19SGreg Roach ], 5202279b4f3SGreg Roach ]); 521451d4d87SGreg Roach $router->post(PendingChangesAcceptTree::class, '/accept'); 522451d4d87SGreg Roach $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}'); 523451d4d87SGreg Roach $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}'); 524451d4d87SGreg Roach $router->get(PendingChanges::class, '/pending'); 525451d4d87SGreg Roach $router->post(PendingChangesRejectTree::class, '/reject'); 526451d4d87SGreg Roach $router->post(PendingChangesRejectRecord::class, '/reject/{xref}'); 527451d4d87SGreg Roach $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}'); 5282279b4f3SGreg Roach }); 5292279b4f3SGreg Roach 5302279b4f3SGreg Roach // Editor routes. 5312279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 5322279b4f3SGreg Roach $router->extras([ 533901ade19SGreg Roach 'middleware' => [ 534901ade19SGreg Roach AuthEditor::class, 535901ade19SGreg Roach ], 5362279b4f3SGreg Roach ]); 5372279b4f3SGreg Roach 538f9b64f46SGreg Roach $router->get(AutoCompleteCitation::class, '/autocomplete/citation'); 539f9b64f46SGreg Roach $router->get(AutoCompleteFolder::class, '/autocomplete/folder'); 540f9b64f46SGreg Roach $router->get(AutoCompletePlace::class, '/autocomplete/place'); 541efd4768bSGreg Roach $router->get(AddChildToFamilyPage::class, '/add-child-to-family/{xref}/{sex}'); 542efd4768bSGreg Roach $router->post(AddChildToFamilyAction::class, '/add-child-to-family/{xref}'); 543451d4d87SGreg Roach $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}'); 544451d4d87SGreg Roach $router->post(SelectNewFact::class, '/add-fact/{xref}'); 545ddb44b4cSGreg Roach $router->get(AddMediaFileModal::class, '/add-media-file/{xref}'); 546ddb44b4cSGreg Roach $router->post(AddMediaFileAction::class, '/add-media-file/{xref}'); 547efd4768bSGreg Roach $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family/{xref}/{sex}'); 548efd4768bSGreg Roach $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family/{xref}'); 549451d4d87SGreg Roach $router->get(ChangeFamilyMembersPage::class, '/change-family-members'); 550451d4d87SGreg Roach $router->post(ChangeFamilyMembersAction::class, '/change-family-members'); 551c2ed51d1SGreg Roach $router->get(CreateLocationModal::class, '/create-location'); 552c2ed51d1SGreg Roach $router->post(CreateLocationAction::class, '/create-location'); 553451d4d87SGreg Roach $router->get(CreateMediaObjectModal::class, '/create-media-object'); 554451d4d87SGreg Roach $router->post(CreateMediaObjectAction::class, '/create-media-object'); 555ddb44b4cSGreg Roach $router->post(CreateMediaObjectFromFile::class, '/create-media-from-file'); 556451d4d87SGreg Roach $router->post(CopyFact::class, '/copy/{xref}/{fact_id}'); 557451d4d87SGreg Roach $router->get(CreateNoteModal::class, '/create-note-object'); 558451d4d87SGreg Roach $router->post(CreateNoteAction::class, '/create-note-object'); 559451d4d87SGreg Roach $router->get(CreateRepositoryModal::class, '/create-repository'); 560451d4d87SGreg Roach $router->post(CreateRepositoryAction::class, '/create-repository'); 561451d4d87SGreg Roach $router->get(CreateSourceModal::class, '/create-source'); 562451d4d87SGreg Roach $router->post(CreateSourceAction::class, '/create-source'); 563451d4d87SGreg Roach $router->get(CreateSubmitterModal::class, '/create-submitter'); 564451d4d87SGreg Roach $router->post(CreateSubmitterAction::class, '/create-submitter'); 565c2ed51d1SGreg Roach $router->get(CreateSubmissionModal::class, '/create-submission'); 566c2ed51d1SGreg Roach $router->post(CreateSubmissionAction::class, '/create-submission'); 567451d4d87SGreg Roach $router->post(DeleteRecord::class, '/delete/{xref}'); 568451d4d87SGreg Roach $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}'); 569451d4d87SGreg Roach $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}'); 570451d4d87SGreg Roach $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}'); 571ddb44b4cSGreg Roach $router->get(EditMediaFileModal::class, '/edit-media-file/{xref}/{fact_id}'); 572ddb44b4cSGreg Roach $router->post(EditMediaFileAction::class, '/edit-media-file/{xref}/{fact_id}'); 573ddb44b4cSGreg Roach $router->get(EditNotePage::class, '/edit-note-object/{xref}'); 574ddb44b4cSGreg Roach $router->post(EditNoteAction::class, '/edit-note-object/{xref}'); 575451d4d87SGreg Roach $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}'); 576451d4d87SGreg Roach $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}'); 577451d4d87SGreg Roach $router->get(EditRawRecordPage::class, '/edit-raw/{xref}'); 578451d4d87SGreg Roach $router->post(EditRawRecordAction::class, '/edit-raw/{xref}'); 579ddb44b4cSGreg Roach $router->get(LinkMediaToFamilyModal::class, '/link-media-to-family/{xref}'); 580ddb44b4cSGreg Roach $router->get(LinkMediaToIndividualModal::class, '/link-media-to-individual/{xref}'); 581ddb44b4cSGreg Roach $router->get(LinkMediaToSourceModal::class, '/link-media-to-source/{xref}'); 582ddb44b4cSGreg Roach $router->post(LinkMediaToRecordAction::class, '/link-media-to-record/{xref}'); 583c2ed51d1SGreg Roach $router->get(EditRecordPage::class, '/edit-record/{xref}'); 584c2ed51d1SGreg Roach $router->post(EditRecordAction::class, '/update-record/{xref}'); 585451d4d87SGreg Roach $router->post(PasteFact::class, '/paste-fact/{xref}'); 586451d4d87SGreg Roach $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}'); 587451d4d87SGreg Roach $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}'); 588451d4d87SGreg Roach $router->get(ReorderMediaPage::class, '/reorder-media/{xref}'); 589451d4d87SGreg Roach $router->post(ReorderMediaAction::class, '/reorder-media/{xref}'); 590d178350fSGreg Roach $router->get(ReorderMediaFilesPage::class, '/reorder-media-files/{xref}'); 591d178350fSGreg Roach $router->post(ReorderMediaFilesAction::class, '/reorder-media-files/{xref}'); 592451d4d87SGreg Roach $router->get(ReorderNamesPage::class, '/reorder-names/{xref}'); 593451d4d87SGreg Roach $router->post(ReorderNamesAction::class, '/reorder-names/{xref}'); 594451d4d87SGreg Roach $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}'); 595451d4d87SGreg Roach $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}'); 596451d4d87SGreg Roach $router->get(SearchReplacePage::class, '/search-replace'); 597451d4d87SGreg Roach $router->post(SearchReplaceAction::class, '/search-replace'); 598efd4768bSGreg Roach $router->get(AddChildToIndividualPage::class, '/add-child-to-individual/{xref}'); 599efd4768bSGreg Roach $router->post(AddChildToIndividualAction::class, '/add-child-to-individual/{xref}'); 600efd4768bSGreg Roach $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual/{xref}/{sex}'); 601efd4768bSGreg Roach $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual/{xref}'); 602efd4768bSGreg Roach $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual/{xref}'); 603efd4768bSGreg Roach $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual/{xref}'); 604451d4d87SGreg Roach $router->get(AddUnlinkedPage::class, '/add-unlinked-individual'); 605451d4d87SGreg Roach $router->post(AddUnlinkedAction::class, '/add-unlinked-individual'); 606efd4768bSGreg Roach $router->get(LinkChildToFamilyPage::class, '/link-child-to-family/{xref}'); 607efd4768bSGreg Roach $router->post(LinkChildToFamilyAction::class, '/link-child-to-family/{xref}'); 608efd4768bSGreg Roach $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual/{xref}'); 609efd4768bSGreg Roach $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual/{xref}'); 6102279b4f3SGreg Roach }); 6112279b4f3SGreg Roach 6128673e6b9SGreg Roach // User routes with a tree. 6132279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 6142279b4f3SGreg Roach $router->extras([ 615901ade19SGreg Roach 'middleware' => [ 6168673e6b9SGreg Roach AuthLoggedIn::class, 617901ade19SGreg Roach ], 6182279b4f3SGreg Roach ]); 6192279b4f3SGreg Roach 620451d4d87SGreg Roach $router->post(MessageSelect::class, '/message-select'); 621451d4d87SGreg Roach $router->get(MessagePage::class, '/message-compose'); 622451d4d87SGreg Roach $router->post(MessageAction::class, '/message-send'); 623451d4d87SGreg Roach $router->get(UserPage::class, '/my-page'); 624451d4d87SGreg Roach $router->get(UserPageBlock::class, '/my-page-block'); 625451d4d87SGreg Roach $router->get(UserPageEdit::class, '/my-page-edit'); 626451d4d87SGreg Roach $router->post(UserPageUpdate::class, '/my-page-edit'); 627b55cbc6bSGreg Roach $router->get(UserPageBlockEdit::class, '/my-page-block-edit/{block_id}'); 628b55cbc6bSGreg Roach $router->post(UserPageBlockUpdate::class, '/my-page-block-edit/{block_id}'); 6292279b4f3SGreg Roach }); 6302279b4f3SGreg Roach 6318673e6b9SGreg Roach // User routes without a tree. 6322279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 6332279b4f3SGreg Roach $router->extras([ 634901ade19SGreg Roach 'middleware' => [ 635901ade19SGreg Roach AuthLoggedIn::class, 636901ade19SGreg Roach ], 6372279b4f3SGreg Roach ]); 6382279b4f3SGreg Roach 639451d4d87SGreg Roach $router->get(AccountEdit::class, '/my-account{/tree}'); 640451d4d87SGreg Roach $router->post(AccountUpdate::class, '/my-account{/tree}'); 641451d4d87SGreg Roach $router->post(AccountDelete::class, '/my-account-delete'); 6429927f70fSGreg Roach $router->post(EmptyClipboard::class, '/empty-clipboard'); 6432279b4f3SGreg Roach }); 6442279b4f3SGreg Roach 645f917a287SGreg Roach // Visitor routes - with an optional tree (for sites with no public trees). 6462279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 647451d4d87SGreg Roach $router->get(LoginPage::class, '/login{/tree}'); 648451d4d87SGreg Roach $router->post(LoginAction::class, '/login{/tree}'); 649451d4d87SGreg Roach $router->get(PasswordRequestPage::class, '/password-request{/tree}'); 650451d4d87SGreg Roach $router->post(PasswordRequestAction::class, '/password-request{/tree}'); 651451d4d87SGreg Roach $router->get(RegisterPage::class, '/register{/tree}'); 652451d4d87SGreg Roach $router->post(RegisterAction::class, '/register{/tree}'); 653451d4d87SGreg Roach $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}'); 654451d4d87SGreg Roach $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}'); 655451d4d87SGreg Roach $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}'); 6562279b4f3SGreg Roach }); 6572279b4f3SGreg Roach 658b45ccc4fSGreg Roach // Visitor routes with a tree. 6592279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 660451d4d87SGreg Roach $router->get(TreePage::class, ''); 6614ef14d36SGreg Roach $router->get(AutoCompleteSurname::class, '/autocomplete/surname'); 662451d4d87SGreg Roach $router->get(CalendarPage::class, '/calendar/{view}'); 663451d4d87SGreg Roach $router->post(CalendarAction::class, '/calendar/{view}'); 664451d4d87SGreg Roach $router->get(CalendarEvents::class, '/calendar-events/{view}'); 665451d4d87SGreg Roach $router->get(ContactPage::class, '/contact'); 666451d4d87SGreg Roach $router->post(ContactAction::class, '/contact'); 66764aa0addSGreg Roach $router->get(FamilyPage::class, '/family/{xref}{/slug}')->tokens(['slug' => '.*']); 66864aa0addSGreg Roach $router->get(HeaderPage::class, '/header/{xref}{/slug}')->tokens(['slug' => '.*']); 66964aa0addSGreg Roach $router->get(IndividualPage::class, '/individual/{xref}{/slug}')->tokens(['slug' => '.*']); 67064aa0addSGreg Roach $router->get(LocationPage::class, '/location/{xref}{/slug}')->tokens(['slug' => '.*']); 671451d4d87SGreg Roach $router->get(MediaFileThumbnail::class, '/media-thumbnail'); 672451d4d87SGreg Roach $router->get(MediaFileDownload::class, '/media-download'); 67364aa0addSGreg Roach $router->get(MediaPage::class, '/media/{xref}{/slug}')->tokens(['slug' => '.*']); 67464aa0addSGreg Roach $router->get(NotePage::class, '/note/{xref}{/slug}')->tokens(['slug' => '.*']); 67564aa0addSGreg Roach $router->get(SharedNotePage::class, '/shared-note/{xref}{/slug}')->tokens(['slug' => '.*']); 67664aa0addSGreg Roach $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}')->tokens(['slug' => '.*']); 67764aa0addSGreg Roach $router->get(RepositoryPage::class, '/repository/{xref}{/slug}')->tokens(['slug' => '.*']); 678451d4d87SGreg Roach $router->get(ReportListPage::class, '/report'); 679451d4d87SGreg Roach $router->post(ReportListAction::class, '/report'); 680451d4d87SGreg Roach $router->get(ReportSetupPage::class, '/report/{report}'); 681451d4d87SGreg Roach $router->post(ReportSetupAction::class, '/report/{report}'); 682451d4d87SGreg Roach $router->get(ReportGenerate::class, '/report-run/{report}'); 683451d4d87SGreg Roach $router->get(SearchAdvancedPage::class, '/search-advanced'); 684451d4d87SGreg Roach $router->post(SearchAdvancedAction::class, '/search-advanced'); 685451d4d87SGreg Roach $router->get(SearchGeneralPage::class, '/search-general'); 686451d4d87SGreg Roach $router->post(SearchGeneralAction::class, '/search-general'); 687451d4d87SGreg Roach $router->get(SearchPhoneticPage::class, '/search-phonetic'); 688451d4d87SGreg Roach $router->post(SearchPhoneticAction::class, '/search-phonetic'); 689451d4d87SGreg Roach $router->post(SearchQuickAction::class, '/search-quick'); 69064aa0addSGreg Roach $router->get(SourcePage::class, '/source/{xref}{/slug}')->tokens(['slug' => '.*']); 69164aa0addSGreg Roach $router->get(SubmissionPage::class, '/submission/{xref}{/slug}')->tokens(['slug' => '.*']); 69264aa0addSGreg Roach $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}')->tokens(['slug' => '.*']); 693c8d78f19SGreg Roach $router->get(TomSelectFamily::class, '/tom-select-family'); 694c8d78f19SGreg Roach $router->get(TomSelectIndividual::class, '/tom-select-individual'); 695c8d78f19SGreg Roach $router->get(TomSelectLocation::class, '/tom-select-location'); 696c8d78f19SGreg Roach $router->get(TomSelectMediaObject::class, '/tom-select-media'); 697c8d78f19SGreg Roach $router->get(TomSelectNote::class, '/tom-select-note'); 698701f5d18SGreg Roach $router->get(TomSelectSharedNote::class, '/tom-select-shared-note'); 699c8d78f19SGreg Roach $router->get(TomSelectPlace::class, '/tom-select-place'); 700c8d78f19SGreg Roach $router->get(TomSelectSource::class, '/tom-select-source'); 701c8d78f19SGreg Roach $router->get(TomSelectSubmission::class, '/tom-select-submission'); 702c8d78f19SGreg Roach $router->get(TomSelectSubmitter::class, '/tom-select-submitter'); 703c8d78f19SGreg Roach $router->get(TomSelectRepository::class, '/tom-select-repository'); 704451d4d87SGreg Roach $router->get(TreePageBlock::class, '/tree-page-block'); 705451d4d87SGreg Roach $router->get('example', '/…') 706451d4d87SGreg Roach ->isRoutable(false); 7072279b4f3SGreg Roach }); 7082279b4f3SGreg Roach 709b59ec43dSGreg Roach // Match module routes, with and without a tree. 710b59ec43dSGreg Roach $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class) 7112279b4f3SGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 712b59ec43dSGreg Roach $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class) 713b59ec43dSGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 714b59ec43dSGreg Roach // Generate module routes only. The router cannot distinguish a private tree from no tree. 715451d4d87SGreg Roach $router->get('module', '/module/{module}/{action}{/tree}') 716451d4d87SGreg Roach ->isRoutable(false); 7172279b4f3SGreg Roach 718451d4d87SGreg Roach $router->get(HelpText::class, '/help/{topic}'); 719451d4d87SGreg Roach $router->post(SelectLanguage::class, '/language/{language}'); 720451d4d87SGreg Roach $router->post(Logout::class, '/logout'); 72164c83a78SGreg Roach $router->get(Ping::class, '/ping', Ping::class) 72264c83a78SGreg Roach ->allows(RequestMethodInterface::METHOD_HEAD); 723451d4d87SGreg Roach $router->post(SelectTheme::class, '/theme/{theme}'); 724451d4d87SGreg Roach $router->get(HomePage::class, '/'); 7252279b4f3SGreg Roach 72647d13d9eSGreg Roach // Special files, either dynamic or need to be in the root folder. 727225b5f81SGreg Roach $router->get(AdsTxt::class, '/ads.txt'); 728225b5f81SGreg Roach $router->get(AppAdsTxt::class, '/app-ads.txt'); 729451d4d87SGreg Roach $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png'); 730d36fce8cSGreg Roach $router->get(BrowserconfigXml::class, '/browserconfig.xml'); 731451d4d87SGreg Roach $router->get(FaviconIco::class, '/favicon.ico'); 73247d13d9eSGreg Roach $router->get(RobotsTxt::class, '/robots.txt'); 733439bf5cfSGreg Roach $router->get(WebmanifestJson::class, '/webmanifest.json'); 734901ade19SGreg Roach }); 7352279b4f3SGreg Roach } 7362279b4f3SGreg Roach} 737