xref: /webtrees/app/Http/Routes/WebRoutes.php (revision 2a93faa69b98fa9892dbcc9aa3a665b3e62e93f1)
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;
157e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderAction;
158e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderPage;
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;
192e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksAction;
193e3544cb2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMapLinksPage;
1949f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction;
1959f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage;
1969f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction;
1979f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage;
1988a1a28d7SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSharesAction;
1998a1a28d7SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSharesPage;
2009f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction;
2019f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage;
2029f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction;
2039f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage;
2049f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction;
2059f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage;
2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage;
2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction;
2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage;
2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction;
2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage;
2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact;
2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges;
2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange;
2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
2152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree;
2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction;
2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData;
2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete;
2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload;
2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage;
2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange;
2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
2232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree;
2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation;
2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping;
2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction;
2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage;
2286fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction;
2296fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage;
2302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction;
2312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
232901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction;
233901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
2342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction;
2352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage;
2362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction;
2372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage;
2382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate;
2392279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction;
2402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage;
2412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction;
2422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage;
2432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
2442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt;
2452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction;
2462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage;
2472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction;
2482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage;
2492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction;
2502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage;
2512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction;
2522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction;
2532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage;
2542279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family;
2552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual;
256c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Location;
2572279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject;
2582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note;
259a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place;
2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository;
2612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source;
262c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submission;
2632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter;
2642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree;
2652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage;
2662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact;
2672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme;
2682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction;
2692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData;
2702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete;
2712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload;
2722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage;
273c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction;
274c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage;
275c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction;
276c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage;
2772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
2781635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
279ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
2806fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
2818e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
2828e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
2838e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit;
2848e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate;
2858e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit;
2868e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate;
2878e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit;
2888e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate;
2896fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
2906fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage;
2916fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction;
2926fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage;
29396716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
29496716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage;
2954b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm;
2964b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage;
2974b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardStep;
2988ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction;
2998ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage;
3004c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddAction;
3014c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddPage;
3024c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditAction;
3034c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditPage;
3044c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData;
3054c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
3068e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
3078e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
3088e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit;
3098e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate;
3108e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit;
3118e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate;
3128e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit;
3138e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate;
3142474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction;
3152474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage;
3162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail;
3172279b4f3SGreg Roach
3182279b4f3SGreg Roach/**
3192279b4f3SGreg Roach * Routing table for web requests
3202279b4f3SGreg Roach */
3212279b4f3SGreg Roachclass WebRoutes
3222279b4f3SGreg Roach{
3232279b4f3SGreg Roach    public function load(Map $router): void
3242279b4f3SGreg Roach    {
325901ade19SGreg Roach        $router->attach('', '', static function (Map $router) {
3262279b4f3SGreg Roach            // Admin routes.
3272279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
3282279b4f3SGreg Roach                $router->extras([
329901ade19SGreg Roach                    'middleware' => [
330901ade19SGreg Roach                        AuthAdministrator::class,
331901ade19SGreg Roach                    ],
3322279b4f3SGreg Roach                ]);
3332279b4f3SGreg Roach
334451d4d87SGreg Roach                $router->get(ControlPanel::class, '');
335451d4d87SGreg Roach                $router->get(BroadcastPage::class, '/broadcast');
336451d4d87SGreg Roach                $router->post(BroadcastAction::class, '/broadcast');
337451d4d87SGreg Roach                $router->get(CleanDataFolder::class, '/clean');
338451d4d87SGreg Roach                $router->post(DeletePath::class, '/delete-path');
339451d4d87SGreg Roach                $router->get(EmailPreferencesPage::class, '/email');
340451d4d87SGreg Roach                $router->post(EmailPreferencesAction::class, '/email');
3414b3ef6caSGreg Roach                $router->get(FixLevel0MediaPage::class, '/fix-level-0-media');
3424b3ef6caSGreg Roach                $router->post(FixLevel0MediaAction::class, '/fix-level-0-media');
3434b3ef6caSGreg Roach                $router->get(FixLevel0MediaData::class, '/fix-level-0-media-data');
344451d4d87SGreg Roach                $router->get(PhpInformation::class, '/information');
345451d4d87SGreg Roach                $router->get(SiteLogsPage::class, '/logs');
346451d4d87SGreg Roach                $router->post(SiteLogsAction::class, '/logs');
347451d4d87SGreg Roach                $router->get(SiteLogsData::class, '/logs-data');
348451d4d87SGreg Roach                $router->post(SiteLogsDelete::class, '/logs-delete');
349451d4d87SGreg Roach                $router->get(SiteLogsDownload::class, '/logs-download');
350451d4d87SGreg Roach                $router->post(Masquerade::class, '/masquerade/{user_id}');
351ddb44b4cSGreg Roach                $router->get(ManageMediaPage::class, '/media');
352ddb44b4cSGreg Roach                $router->post(ManageMediaAction::class, '/media');
353ddb44b4cSGreg Roach                $router->get(ManageMediaData::class, '/media-data');
354ddb44b4cSGreg Roach                $router->get(UploadMediaPage::class, '/media-upload');
355ddb44b4cSGreg Roach                $router->post(UploadMediaAction::class, '/media-upload');
35610a93a5fSGreg Roach                $router->get(AdminMediaFileDownload::class, '/media-file');
35710a93a5fSGreg Roach                $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail');
358451d4d87SGreg Roach                $router->get(CreateTreePage::class, '/trees/create');
359451d4d87SGreg Roach                $router->post(CreateTreeAction::class, '/trees/create');
360451d4d87SGreg Roach                $router->post(SelectDefaultTree::class, '/trees/default/{tree}');
361451d4d87SGreg Roach                $router->post(DeleteTreeAction::class, '/trees/delete/{tree}');
3624b3ef6caSGreg Roach                $router->get(ImportThumbnailsPage::class, '/webtrees1-thumbs');
3634b3ef6caSGreg Roach                $router->post(ImportThumbnailsAction::class, '/webtrees1-thumbs');
3644b3ef6caSGreg Roach                $router->get(ImportThumbnailsData::class, '/webtrees1-thumbs-data');
365451d4d87SGreg Roach                $router->get(UsersCleanupPage::class, '/users-cleanup');
366451d4d87SGreg Roach                $router->post(UsersCleanupAction::class, '/users-cleanup');
36790949315SGreg Roach                $router->get(MapDataAdd::class, '/map-data-add{/parent_id}');
36890949315SGreg Roach                $router->post(MapDataDelete::class, '/map-data-delete/{place_id}');
36990949315SGreg Roach                $router->get(MapDataEdit::class, '/map-data-edit/{place_id}');
37090949315SGreg Roach                $router->get(MapDataExportCSV::class, '/map-data-csv{/parent_id}');
37190949315SGreg Roach                $router->get(MapDataExportGeoJson::class, '/map-data-geojson{/parent_id}');
37290949315SGreg Roach                $router->get(MapDataImportPage::class, '/locations-import');
37390949315SGreg Roach                $router->post(MapDataImportAction::class, '/locations-import');
37490949315SGreg Roach                $router->get(MapDataList::class, '/map-data{/parent_id}');
375*2a93faa6SGreg Roach                $router->post(MapDataSave::class, '/map-data-update');
376ddb44b4cSGreg Roach                $router->get(MapProviderPage::class, '/map-provider');
377ddb44b4cSGreg Roach                $router->post(MapProviderAction::class, '/map-provider');
3789f667ff2SGreg Roach                $router->post(ModuleDeleteSettings::class, '/module-delete-settings');
3799f667ff2SGreg Roach                $router->get(ModulesAllPage::class, '/modules');
3809f667ff2SGreg Roach                $router->post(ModulesAllAction::class, '/modules');
3819f667ff2SGreg Roach                $router->get(ModulesAnalyticsPage::class, '/analytics');
3829f667ff2SGreg Roach                $router->post(ModulesAnalyticsAction::class, '/analytics');
3839f667ff2SGreg Roach                $router->get(ModulesBlocksPage::class, '/blocks');
3849f667ff2SGreg Roach                $router->post(ModulesBlocksAction::class, '/blocks');
3859f667ff2SGreg Roach                $router->get(ModulesChartsPage::class, '/charts');
3869f667ff2SGreg Roach                $router->post(ModulesChartsAction::class, '/charts');
3879f667ff2SGreg Roach                $router->get(ModulesDataFixesPage::class, '/data-fixes');
3889f667ff2SGreg Roach                $router->post(ModulesDataFixesAction::class, '/data-fixes');
3899f667ff2SGreg Roach                $router->get(ModulesFootersPage::class, '/footers');
3909f667ff2SGreg Roach                $router->post(ModulesFootersAction::class, '/footers');
3919f667ff2SGreg Roach                $router->get(ModulesHistoricEventsPage::class, '/historic-events');
3929f667ff2SGreg Roach                $router->post(ModulesHistoricEventsAction::class, '/historic-events');
3939f667ff2SGreg Roach                $router->get(ModulesListsPage::class, '/lists');
3949f667ff2SGreg Roach                $router->post(ModulesListsAction::class, '/lists');
395e3544cb2SGreg Roach                $router->get(ModulesMapLinksPage::class, '/map-links');
396e3544cb2SGreg Roach                $router->post(ModulesMapLinksAction::class, '/map-links');
3979f667ff2SGreg Roach                $router->get(ModulesMenusPage::class, '/menus');
3989f667ff2SGreg Roach                $router->post(ModulesMenusAction::class, '/menus');
3999f667ff2SGreg Roach                $router->get(ModulesLanguagesPage::class, '/languages');
4009f667ff2SGreg Roach                $router->post(ModulesLanguagesAction::class, '/languages');
4019f667ff2SGreg Roach                $router->get(ModulesReportsPage::class, '/reports');
4029f667ff2SGreg Roach                $router->post(ModulesReportsAction::class, '/reports');
4038a1a28d7SGreg Roach                $router->get(ModulesSharesPage::class, '/shares');
4048a1a28d7SGreg Roach                $router->post(ModulesSharesAction::class, '/shares');
4059f667ff2SGreg Roach                $router->get(ModulesSidebarsPage::class, '/sidebars');
4069f667ff2SGreg Roach                $router->post(ModulesSidebarsAction::class, '/sidebars');
4079f667ff2SGreg Roach                $router->get(ModulesTabsPage::class, '/tabs');
4089f667ff2SGreg Roach                $router->post(ModulesTabsAction::class, '/tabs');
4099f667ff2SGreg Roach                $router->get(ModulesThemesPage::class, '/themes');
4109f667ff2SGreg Roach                $router->post(ModulesThemesAction::class, '/themes');
4114b3ef6caSGreg Roach                $router->get(UpgradeWizardPage::class, '/upgrade');
4124b3ef6caSGreg Roach                $router->post(UpgradeWizardConfirm::class, '/upgrade-confirm');
4134b3ef6caSGreg Roach                $router->post(UpgradeWizardStep::class, '/upgrade-action');
4144c3563c0SGreg Roach                $router->get(UserListPage::class, '/admin-users');
4154c3563c0SGreg Roach                $router->get(UserListData::class, '/admin-users-data');
4164c3563c0SGreg Roach                $router->get(UserAddPage::class, '/admin-users-create');
4174c3563c0SGreg Roach                $router->post(UserAddAction::class, '/admin-users-create');
4184c3563c0SGreg Roach                $router->get(UserEditPage::class, '/admin-users-edit');
4194c3563c0SGreg Roach                $router->post(UserEditAction::class, '/admin-users-edit');
420451d4d87SGreg Roach                $router->get(SitePreferencesPage::class, '/site-preferences');
421451d4d87SGreg Roach                $router->post(SitePreferencesAction::class, '/site-preferences');
422451d4d87SGreg Roach                $router->get(SiteRegistrationPage::class, '/site-registration');
423451d4d87SGreg Roach                $router->post(SiteRegistrationAction::class, '/site-registration');
424451d4d87SGreg Roach                $router->get(TreePageDefaultEdit::class, '/trees/default-blocks');
425451d4d87SGreg Roach                $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks');
4266fd01894SGreg Roach                $router->get(MergeTreesPage::class, '/trees/merge');
4276fd01894SGreg Roach                $router->post(MergeTreesAction::class, '/trees/merge');
4286fd01894SGreg Roach                $router->post(SynchronizeTrees::class, '/trees/sync');
4296fd01894SGreg Roach                $router->post(DeleteUser::class, '/users/delete/{user_id}');
430451d4d87SGreg Roach                $router->get(UserPageDefaultEdit::class, '/user-page-default-edit');
431451d4d87SGreg Roach                $router->post(UserPageDefaultUpdate::class, '/user-page-default-update');
4322279b4f3SGreg Roach            });
4332279b4f3SGreg Roach
43457796b09SGreg Roach            // Manager routes (multiple trees).
4352279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
4362279b4f3SGreg Roach                $router->extras([
437901ade19SGreg Roach                    'middleware' => [
438901ade19SGreg Roach                        AuthManager::class,
439901ade19SGreg Roach                    ],
4402279b4f3SGreg Roach                ]);
4412279b4f3SGreg Roach
4426fd01894SGreg Roach                $router->get(ManageTrees::class, '/trees/manage/{tree}');
4432279b4f3SGreg Roach            });
4442279b4f3SGreg Roach
4452279b4f3SGreg Roach            // Manager routes.
4462279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4472279b4f3SGreg Roach                $router->extras([
448901ade19SGreg Roach                    'middleware' => [
449901ade19SGreg Roach                        AuthManager::class,
450901ade19SGreg Roach                    ],
4512279b4f3SGreg Roach                ]);
4522279b4f3SGreg Roach
453451d4d87SGreg Roach                $router->get(PendingChangesLogPage::class, '/changes-log');
454451d4d87SGreg Roach                $router->post(PendingChangesLogAction::class, '/changes-log');
455451d4d87SGreg Roach                $router->get(PendingChangesLogData::class, '/changes-data');
456451d4d87SGreg Roach                $router->post(PendingChangesLogDelete::class, '/changes-delete');
457451d4d87SGreg Roach                $router->get(PendingChangesLogDownload::class, '/changes-download');
4586fd01894SGreg Roach                $router->get(CheckTree::class, '/check');
459451d4d87SGreg Roach                $router->get(DataFixChoose::class, '/data-fix');
460451d4d87SGreg Roach                $router->post(DataFixSelect::class, '/data-fix');
461451d4d87SGreg Roach                $router->get(DataFixPage::class, '/data-fix/{data_fix}');
462451d4d87SGreg Roach                $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update');
463451d4d87SGreg Roach                $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all');
464451d4d87SGreg Roach                $router->get(DataFixData::class, '/data-fix/{data_fix}/data');
465451d4d87SGreg Roach                $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview');
4666fd01894SGreg Roach                $router->get(FindDuplicateRecords::class, '/duplicates');
467451d4d87SGreg Roach                $router->get(ExportGedcomPage::class, '/export');
468451d4d87SGreg Roach                $router->post(ExportGedcomClient::class, '/export-client');
469451d4d87SGreg Roach                $router->post(ExportGedcomServer::class, '/export-server');
4706fd01894SGreg Roach                $router->get(ImportGedcomPage::class, '/import');
4716fd01894SGreg Roach                $router->post(ImportGedcomAction::class, '/import');
472451d4d87SGreg Roach                $router->get(MergeRecordsPage::class, '/merge-step1');
473451d4d87SGreg Roach                $router->post(MergeRecordsAction::class, '/merge-step1');
474451d4d87SGreg Roach                $router->get(MergeFactsPage::class, '/merge-step2');
475451d4d87SGreg Roach                $router->post(MergeFactsAction::class, '/merge-step2');
4766fd01894SGreg Roach                $router->get(TreePreferencesPage::class, '/preferences');
4776fd01894SGreg Roach                $router->post(TreePreferencesAction::class, '/preferences');
4786fd01894SGreg Roach                $router->get(RenumberTreePage::class, '/renumber');
4796fd01894SGreg Roach                $router->post(RenumberTreeAction::class, '/renumber');
480451d4d87SGreg Roach                $router->get(TreePageEdit::class, '/tree-page-edit');
4816fd01894SGreg Roach                $router->post(GedcomLoad::class, '/load');
482451d4d87SGreg Roach                $router->post(TreePageUpdate::class, '/tree-page-update');
483451d4d87SGreg Roach                $router->get(TreePageBlockEdit::class, '/tree-page-block-edit');
484451d4d87SGreg Roach                $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit');
4856fd01894SGreg Roach                $router->get(TreePrivacyPage::class, '/privacy');
4866fd01894SGreg Roach                $router->post(TreePrivacyAction::class, '/privacy');
487451d4d87SGreg Roach                $router->get(UnconnectedPage::class, '/unconnected');
488451d4d87SGreg Roach                $router->post(UnconnectedAction::class, '/unconnected');
4892279b4f3SGreg Roach            });
4902279b4f3SGreg Roach
4912279b4f3SGreg Roach            // Moderator routes.
4922279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4932279b4f3SGreg Roach                $router->extras([
494901ade19SGreg Roach                    'middleware' => [
495901ade19SGreg Roach                        AuthModerator::class,
496901ade19SGreg Roach                    ],
4972279b4f3SGreg Roach                ]);
498451d4d87SGreg Roach                $router->post(PendingChangesAcceptTree::class, '/accept');
499451d4d87SGreg Roach                $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}');
500451d4d87SGreg Roach                $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}');
501451d4d87SGreg Roach                $router->get(PendingChanges::class, '/pending');
502451d4d87SGreg Roach                $router->post(PendingChangesRejectTree::class, '/reject');
503451d4d87SGreg Roach                $router->post(PendingChangesRejectRecord::class, '/reject/{xref}');
504451d4d87SGreg Roach                $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}');
5052279b4f3SGreg Roach            });
5062279b4f3SGreg Roach
5072279b4f3SGreg Roach            // Editor routes.
5082279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5092279b4f3SGreg Roach                $router->extras([
510901ade19SGreg Roach                    'middleware' => [
511901ade19SGreg Roach                        AuthEditor::class,
512901ade19SGreg Roach                    ],
5132279b4f3SGreg Roach                ]);
5142279b4f3SGreg Roach
51563763244SGreg Roach                $router->get(AutoCompleteCitation::class, '/autocomplete/citation/{query}');
51663763244SGreg Roach                $router->get(AutoCompleteFolder::class, '/autocomplete/folder/{query}');
51763763244SGreg Roach                $router->get(AutoCompletePlace::class, '/autocomplete/place/{query}');
51863763244SGreg Roach                $router->get(AutoCompleteSurname::class, '/autocomplete/surname/{query}');
519451d4d87SGreg Roach                $router->get(AddChildToFamilyPage::class, '/add-child-to-family');
520451d4d87SGreg Roach                $router->post(AddChildToFamilyAction::class, '/add-child-to-family');
521451d4d87SGreg Roach                $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}');
522451d4d87SGreg Roach                $router->post(SelectNewFact::class, '/add-fact/{xref}');
523ddb44b4cSGreg Roach                $router->get(AddMediaFileModal::class, '/add-media-file/{xref}');
524ddb44b4cSGreg Roach                $router->post(AddMediaFileAction::class, '/add-media-file/{xref}');
525451d4d87SGreg Roach                $router->get(AddName::class, '/add-name');
526451d4d87SGreg Roach                $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family');
527451d4d87SGreg Roach                $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family');
528451d4d87SGreg Roach                $router->get(ChangeFamilyMembersPage::class, '/change-family-members');
529451d4d87SGreg Roach                $router->post(ChangeFamilyMembersAction::class, '/change-family-members');
530c2ed51d1SGreg Roach                $router->get(CreateLocationModal::class, '/create-location');
531c2ed51d1SGreg Roach                $router->post(CreateLocationAction::class, '/create-location');
532451d4d87SGreg Roach                $router->get(CreateMediaObjectModal::class, '/create-media-object');
533451d4d87SGreg Roach                $router->post(CreateMediaObjectAction::class, '/create-media-object');
534ddb44b4cSGreg Roach                $router->post(CreateMediaObjectFromFile::class, '/create-media-from-file');
535451d4d87SGreg Roach                $router->post(CopyFact::class, '/copy/{xref}/{fact_id}');
536451d4d87SGreg Roach                $router->get(CreateNoteModal::class, '/create-note-object');
537451d4d87SGreg Roach                $router->post(CreateNoteAction::class, '/create-note-object');
538451d4d87SGreg Roach                $router->get(CreateRepositoryModal::class, '/create-repository');
539451d4d87SGreg Roach                $router->post(CreateRepositoryAction::class, '/create-repository');
540451d4d87SGreg Roach                $router->get(CreateSourceModal::class, '/create-source');
541451d4d87SGreg Roach                $router->post(CreateSourceAction::class, '/create-source');
542451d4d87SGreg Roach                $router->get(CreateSubmitterModal::class, '/create-submitter');
543451d4d87SGreg Roach                $router->post(CreateSubmitterAction::class, '/create-submitter');
544c2ed51d1SGreg Roach                $router->get(CreateSubmissionModal::class, '/create-submission');
545c2ed51d1SGreg Roach                $router->post(CreateSubmissionAction::class, '/create-submission');
546451d4d87SGreg Roach                $router->post(DeleteRecord::class, '/delete/{xref}');
547451d4d87SGreg Roach                $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}');
548451d4d87SGreg Roach                $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}');
549451d4d87SGreg Roach                $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}');
550ddb44b4cSGreg Roach                $router->get(EditMediaFileModal::class, '/edit-media-file/{xref}/{fact_id}');
551ddb44b4cSGreg Roach                $router->post(EditMediaFileAction::class, '/edit-media-file/{xref}/{fact_id}');
552ddb44b4cSGreg Roach                $router->get(EditNotePage::class, '/edit-note-object/{xref}');
553ddb44b4cSGreg Roach                $router->post(EditNoteAction::class, '/edit-note-object/{xref}');
554451d4d87SGreg Roach                $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}');
555451d4d87SGreg Roach                $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}');
556451d4d87SGreg Roach                $router->get(EditRawRecordPage::class, '/edit-raw/{xref}');
557451d4d87SGreg Roach                $router->post(EditRawRecordAction::class, '/edit-raw/{xref}');
558ddb44b4cSGreg Roach                $router->get(LinkMediaToFamilyModal::class, '/link-media-to-family/{xref}');
559ddb44b4cSGreg Roach                $router->get(LinkMediaToIndividualModal::class, '/link-media-to-individual/{xref}');
560ddb44b4cSGreg Roach                $router->get(LinkMediaToSourceModal::class, '/link-media-to-source/{xref}');
561ddb44b4cSGreg Roach                $router->post(LinkMediaToRecordAction::class, '/link-media-to-record/{xref}');
562c2ed51d1SGreg Roach                $router->get(EditRecordPage::class, '/edit-record/{xref}');
563c2ed51d1SGreg Roach                $router->post(EditRecordAction::class, '/update-record/{xref}');
564451d4d87SGreg Roach                $router->post(PasteFact::class, '/paste-fact/{xref}');
565451d4d87SGreg Roach                $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}');
566451d4d87SGreg Roach                $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}');
567451d4d87SGreg Roach                $router->get(ReorderMediaPage::class, '/reorder-media/{xref}');
568451d4d87SGreg Roach                $router->post(ReorderMediaAction::class, '/reorder-media/{xref}');
569451d4d87SGreg Roach                $router->get(ReorderNamesPage::class, '/reorder-names/{xref}');
570451d4d87SGreg Roach                $router->post(ReorderNamesAction::class, '/reorder-names/{xref}');
571451d4d87SGreg Roach                $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}');
572451d4d87SGreg Roach                $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}');
573451d4d87SGreg Roach                $router->get(SearchReplacePage::class, '/search-replace');
574451d4d87SGreg Roach                $router->post(SearchReplaceAction::class, '/search-replace');
575451d4d87SGreg Roach                $router->get(AddChildToIndividualPage::class, '/add-child-to-individual');
576451d4d87SGreg Roach                $router->post(AddChildToIndividualAction::class, '/add-child-to-individual');
577451d4d87SGreg Roach                $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual');
578451d4d87SGreg Roach                $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual');
579451d4d87SGreg Roach                $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual');
580451d4d87SGreg Roach                $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual');
581451d4d87SGreg Roach                $router->get(AddUnlinkedPage::class, '/add-unlinked-individual');
582451d4d87SGreg Roach                $router->post(AddUnlinkedAction::class, '/add-unlinked-individual');
583451d4d87SGreg Roach                $router->get(LinkChildToFamilyPage::class, '/link-child-to-family');
584451d4d87SGreg Roach                $router->post(LinkChildToFamilyAction::class, '/link-child-to-family');
585451d4d87SGreg Roach                $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual');
586451d4d87SGreg Roach                $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual');
587451d4d87SGreg Roach                $router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
5882279b4f3SGreg Roach            });
5892279b4f3SGreg Roach
5908673e6b9SGreg Roach            // User routes with a tree.
5912279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5922279b4f3SGreg Roach                $router->extras([
593901ade19SGreg Roach                    'middleware' => [
5948673e6b9SGreg Roach                        AuthLoggedIn::class,
595901ade19SGreg Roach                    ],
5962279b4f3SGreg Roach                ]);
5972279b4f3SGreg Roach
598451d4d87SGreg Roach                $router->post(MessageSelect::class, '/message-select');
599451d4d87SGreg Roach                $router->get(MessagePage::class, '/message-compose');
600451d4d87SGreg Roach                $router->post(MessageAction::class, '/message-send');
601451d4d87SGreg Roach                $router->get(UserPage::class, '/my-page');
602451d4d87SGreg Roach                $router->get(UserPageBlock::class, '/my-page-block');
603451d4d87SGreg Roach                $router->get(UserPageEdit::class, '/my-page-edit');
604451d4d87SGreg Roach                $router->post(UserPageUpdate::class, '/my-page-edit');
605451d4d87SGreg Roach                $router->get(UserPageBlockEdit::class, '/my-page-block-edit');
606451d4d87SGreg Roach                $router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
6072279b4f3SGreg Roach            });
6082279b4f3SGreg Roach
6098673e6b9SGreg Roach            // User routes without a tree.
6102279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
6112279b4f3SGreg Roach                $router->extras([
612901ade19SGreg Roach                    'middleware' => [
613901ade19SGreg Roach                        AuthLoggedIn::class,
614901ade19SGreg Roach                    ],
6152279b4f3SGreg Roach                ]);
6162279b4f3SGreg Roach
617451d4d87SGreg Roach                $router->get(AccountEdit::class, '/my-account{/tree}');
618451d4d87SGreg Roach                $router->post(AccountUpdate::class, '/my-account{/tree}');
619451d4d87SGreg Roach                $router->post(AccountDelete::class, '/my-account-delete');
6202279b4f3SGreg Roach            });
6212279b4f3SGreg Roach
622f917a287SGreg Roach            // Visitor routes - with an optional tree (for sites with no public trees).
6232279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
624451d4d87SGreg Roach                $router->get(LoginPage::class, '/login{/tree}');
625451d4d87SGreg Roach                $router->post(LoginAction::class, '/login{/tree}');
626451d4d87SGreg Roach                $router->get(PasswordRequestPage::class, '/password-request{/tree}');
627451d4d87SGreg Roach                $router->post(PasswordRequestAction::class, '/password-request{/tree}');
628451d4d87SGreg Roach                $router->get(RegisterPage::class, '/register{/tree}');
629451d4d87SGreg Roach                $router->post(RegisterAction::class, '/register{/tree}');
630451d4d87SGreg Roach                $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}');
631451d4d87SGreg Roach                $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}');
632451d4d87SGreg Roach                $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}');
6332279b4f3SGreg Roach            });
6342279b4f3SGreg Roach
635b45ccc4fSGreg Roach            // Visitor routes with a tree.
6362279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
637451d4d87SGreg Roach                $router->get(TreePage::class, '');
638451d4d87SGreg Roach                $router->get(CalendarPage::class, '/calendar/{view}');
639451d4d87SGreg Roach                $router->post(CalendarAction::class, '/calendar/{view}');
640451d4d87SGreg Roach                $router->get(CalendarEvents::class, '/calendar-events/{view}');
641451d4d87SGreg Roach                $router->get(ContactPage::class, '/contact');
642451d4d87SGreg Roach                $router->post(ContactAction::class, '/contact');
643451d4d87SGreg Roach                $router->get(FamilyPage::class, '/family/{xref}{/slug}');
644451d4d87SGreg Roach                $router->get(HeaderPage::class, '/header/{xref}{/slug}');
645451d4d87SGreg Roach                $router->get(IndividualPage::class, '/individual/{xref}{/slug}');
646e8ded2caSGreg Roach                $router->get(LocationPage::class, '/location/{xref}{/slug}');
647451d4d87SGreg Roach                $router->get(MediaFileThumbnail::class, '/media-thumbnail');
648451d4d87SGreg Roach                $router->get(MediaFileDownload::class, '/media-download');
649451d4d87SGreg Roach                $router->get(MediaPage::class, '/media/{xref}{/slug}');
650451d4d87SGreg Roach                $router->get(NotePage::class, '/note/{xref}{/slug}');
651451d4d87SGreg Roach                $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}');
652451d4d87SGreg Roach                $router->get(RepositoryPage::class, '/repository/{xref}{/slug}');
653451d4d87SGreg Roach                $router->get(ReportListPage::class, '/report');
654451d4d87SGreg Roach                $router->post(ReportListAction::class, '/report');
655451d4d87SGreg Roach                $router->get(ReportSetupPage::class, '/report/{report}');
656451d4d87SGreg Roach                $router->post(ReportSetupAction::class, '/report/{report}');
657451d4d87SGreg Roach                $router->get(ReportGenerate::class, '/report-run/{report}');
658451d4d87SGreg Roach                $router->get(SearchAdvancedPage::class, '/search-advanced');
659451d4d87SGreg Roach                $router->post(SearchAdvancedAction::class, '/search-advanced');
660451d4d87SGreg Roach                $router->get(SearchGeneralPage::class, '/search-general');
661451d4d87SGreg Roach                $router->post(SearchGeneralAction::class, '/search-general');
662451d4d87SGreg Roach                $router->get(SearchPhoneticPage::class, '/search-phonetic');
663451d4d87SGreg Roach                $router->post(SearchPhoneticAction::class, '/search-phonetic');
664451d4d87SGreg Roach                $router->post(SearchQuickAction::class, '/search-quick');
665451d4d87SGreg Roach                $router->post(Select2Family::class, '/select2-family');
666451d4d87SGreg Roach                $router->post(Select2Individual::class, '/select2-individual');
667c2ed51d1SGreg Roach                $router->post(Select2Location::class, '/select2-location');
668451d4d87SGreg Roach                $router->post(Select2MediaObject::class, '/select2-media');
669451d4d87SGreg Roach                $router->post(Select2Note::class, '/select2-note');
670451d4d87SGreg Roach                $router->post(Select2Place::class, '/select2-place');
671451d4d87SGreg Roach                $router->post(Select2Source::class, '/select2-source');
672c2ed51d1SGreg Roach                $router->post(Select2Submission::class, '/select2-submission');
673451d4d87SGreg Roach                $router->post(Select2Submitter::class, '/select2-submitter');
674451d4d87SGreg Roach                $router->post(Select2Repository::class, '/select2-repository');
675451d4d87SGreg Roach                $router->get(SourcePage::class, '/source/{xref}{/slug}');
676451d4d87SGreg Roach                $router->get(SubmissionPage::class, '/submission/{xref}{/slug}');
677451d4d87SGreg Roach                $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}');
678451d4d87SGreg Roach                $router->get(TreePageBlock::class, '/tree-page-block');
679451d4d87SGreg Roach                $router->get('example', '/…')
680451d4d87SGreg Roach                    ->isRoutable(false);
6812279b4f3SGreg Roach            });
6822279b4f3SGreg Roach
683b59ec43dSGreg Roach            // Match module routes, with and without a tree.
684b59ec43dSGreg Roach            $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class)
6852279b4f3SGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
686b59ec43dSGreg Roach            $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class)
687b59ec43dSGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
688b59ec43dSGreg Roach            // Generate module routes only. The router cannot distinguish a private tree from no tree.
689451d4d87SGreg Roach            $router->get('module', '/module/{module}/{action}{/tree}')
690451d4d87SGreg Roach                ->isRoutable(false);
6912279b4f3SGreg Roach
692451d4d87SGreg Roach            $router->get(HelpText::class, '/help/{topic}');
693451d4d87SGreg Roach            $router->post(SelectLanguage::class, '/language/{language}');
694451d4d87SGreg Roach            $router->post(Logout::class, '/logout');
69564c83a78SGreg Roach            $router->get(Ping::class, '/ping', Ping::class)
69664c83a78SGreg Roach                ->allows(RequestMethodInterface::METHOD_HEAD);
697451d4d87SGreg Roach            $router->get(RobotsTxt::class, '/robots.txt');
698451d4d87SGreg Roach            $router->post(SelectTheme::class, '/theme/{theme}');
699451d4d87SGreg Roach            $router->get(HomePage::class, '/');
7002279b4f3SGreg Roach
70146431a62SGreg Roach            // Some URL rewrite configurations will pass everything not in /public to index.php
702451d4d87SGreg Roach            $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png');
703451d4d87SGreg Roach            $router->get(FaviconIco::class, '/favicon.ico');
704901ade19SGreg Roach        });
7052279b4f3SGreg Roach    }
7062279b4f3SGreg Roach}
707