xref: /webtrees/app/Http/Routes/WebRoutes.php (revision c2ed51d13a57743094c11c8fe84befd9d4f158cd)
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;
68*c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateLocationAction;
69*c2ed51d1SGreg 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;
79*c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmissionAction;
80*c2ed51d1SGreg 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;
108*c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRecordAction;
109*c2ed51d1SGreg 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;
1402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction;
1412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage;
1422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout;
1438ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaAction;
1448ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaData;
1458ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaPage;
1466fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
14790949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataAdd;
14894e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete;
14990949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataEdit;
15090949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportCSV;
15190949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportGeoJson;
15290949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportAction;
15390949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportPage;
15494e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList;
15590949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataSave;
156e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderAction;
157e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderPage;
158040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade;
15946b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload;
16046b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail;
1612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage;
1625bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction;
1635bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage;
1645bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction;
1655bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage;
1666fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction;
1676fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage;
168e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction;
169e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage;
170e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect;
1712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction;
1729f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings;
1736fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction;
1746fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
1759f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction;
1769f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
1779f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction;
1789f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage;
1799f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction;
1809f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage;
1819f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction;
1829f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage;
1839f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction;
1849f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage;
1859f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction;
1869f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage;
1879f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction;
1889f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage;
1899f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction;
1909f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage;
1919f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction;
1929f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage;
1939f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction;
1949f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage;
1959f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction;
1969f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage;
1979f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction;
1989f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage;
1999f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction;
2009f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage;
2012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage;
2022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction;
2032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage;
2042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction;
2052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage;
2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact;
2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges;
2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange;
2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree;
2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction;
2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData;
2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete;
2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload;
2152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage;
2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange;
2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree;
2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation;
2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping;
2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction;
2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage;
2236fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction;
2246fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage;
2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction;
2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
227901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction;
228901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
2292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction;
2302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage;
2312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction;
2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage;
2332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate;
2342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction;
2352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage;
2362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction;
2372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage;
2382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
2392279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt;
2402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction;
2412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage;
2422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction;
2432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage;
2442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction;
2452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage;
2462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction;
2472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction;
2482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage;
2492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family;
2502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual;
251*c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Location;
2522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject;
2532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note;
254a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place;
2552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository;
2562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source;
257*c2ed51d1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submission;
2582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter;
2592279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree;
2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage;
2612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact;
2622279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme;
2632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction;
2642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData;
2652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete;
2662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload;
2672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage;
268c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction;
269c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage;
270c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction;
271c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage;
2722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
2731635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
274ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
2756fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
2768e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
2778e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
2788e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit;
2798e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate;
2808e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit;
2818e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate;
2828e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit;
2838e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate;
2846fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
2856fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage;
2866fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction;
2876fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage;
28896716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
28996716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage;
2904b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm;
2914b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage;
2924b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardStep;
2938ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction;
2948ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage;
2954c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddAction;
2964c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddPage;
2974c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditAction;
2984c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditPage;
2994c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData;
3004c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
3018e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
3028e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
3038e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit;
3048e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate;
3058e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit;
3068e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate;
3078e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit;
3088e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate;
3092474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction;
3102474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage;
3112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail;
3122279b4f3SGreg Roach
3132279b4f3SGreg Roach/**
3142279b4f3SGreg Roach * Routing table for web requests
3152279b4f3SGreg Roach */
3162279b4f3SGreg Roachclass WebRoutes
3172279b4f3SGreg Roach{
3182279b4f3SGreg Roach    public function load(Map $router): void
3192279b4f3SGreg Roach    {
320901ade19SGreg Roach        $router->attach('', '', static function (Map $router) {
3212279b4f3SGreg Roach            // Admin routes.
3222279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
3232279b4f3SGreg Roach                $router->extras([
324901ade19SGreg Roach                    'middleware' => [
325901ade19SGreg Roach                        AuthAdministrator::class,
326901ade19SGreg Roach                    ],
3272279b4f3SGreg Roach                ]);
3282279b4f3SGreg Roach
329451d4d87SGreg Roach                $router->get(ControlPanel::class, '');
330451d4d87SGreg Roach                $router->get(BroadcastPage::class, '/broadcast');
331451d4d87SGreg Roach                $router->post(BroadcastAction::class, '/broadcast');
332451d4d87SGreg Roach                $router->get(CleanDataFolder::class, '/clean');
333451d4d87SGreg Roach                $router->post(DeletePath::class, '/delete-path');
334451d4d87SGreg Roach                $router->get(EmailPreferencesPage::class, '/email');
335451d4d87SGreg Roach                $router->post(EmailPreferencesAction::class, '/email');
3364b3ef6caSGreg Roach                $router->get(FixLevel0MediaPage::class, '/fix-level-0-media');
3374b3ef6caSGreg Roach                $router->post(FixLevel0MediaAction::class, '/fix-level-0-media');
3384b3ef6caSGreg Roach                $router->get(FixLevel0MediaData::class, '/fix-level-0-media-data');
339451d4d87SGreg Roach                $router->get(PhpInformation::class, '/information');
340451d4d87SGreg Roach                $router->get(SiteLogsPage::class, '/logs');
341451d4d87SGreg Roach                $router->post(SiteLogsAction::class, '/logs');
342451d4d87SGreg Roach                $router->get(SiteLogsData::class, '/logs-data');
343451d4d87SGreg Roach                $router->post(SiteLogsDelete::class, '/logs-delete');
344451d4d87SGreg Roach                $router->get(SiteLogsDownload::class, '/logs-download');
345451d4d87SGreg Roach                $router->post(Masquerade::class, '/masquerade/{user_id}');
346ddb44b4cSGreg Roach                $router->get(ManageMediaPage::class, '/media');
347ddb44b4cSGreg Roach                $router->post(ManageMediaAction::class, '/media');
348ddb44b4cSGreg Roach                $router->get(ManageMediaData::class, '/media-data');
349ddb44b4cSGreg Roach                $router->get(UploadMediaPage::class, '/media-upload');
350ddb44b4cSGreg Roach                $router->post(UploadMediaAction::class, '/media-upload');
35110a93a5fSGreg Roach                $router->get(AdminMediaFileDownload::class, '/media-file');
35210a93a5fSGreg Roach                $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail');
353451d4d87SGreg Roach                $router->get(CreateTreePage::class, '/trees/create');
354451d4d87SGreg Roach                $router->post(CreateTreeAction::class, '/trees/create');
355451d4d87SGreg Roach                $router->post(SelectDefaultTree::class, '/trees/default/{tree}');
356451d4d87SGreg Roach                $router->post(DeleteTreeAction::class, '/trees/delete/{tree}');
3574b3ef6caSGreg Roach                $router->get(ImportThumbnailsPage::class, '/webtrees1-thumbs');
3584b3ef6caSGreg Roach                $router->post(ImportThumbnailsAction::class, '/webtrees1-thumbs');
3594b3ef6caSGreg Roach                $router->get(ImportThumbnailsData::class, '/webtrees1-thumbs-data');
360451d4d87SGreg Roach                $router->get(UsersCleanupPage::class, '/users-cleanup');
361451d4d87SGreg Roach                $router->post(UsersCleanupAction::class, '/users-cleanup');
36290949315SGreg Roach                $router->get(MapDataAdd::class, '/map-data-add{/parent_id}');
36390949315SGreg Roach                $router->post(MapDataDelete::class, '/map-data-delete/{place_id}');
36490949315SGreg Roach                $router->get(MapDataEdit::class, '/map-data-edit/{place_id}');
36590949315SGreg Roach                $router->get(MapDataExportCSV::class, '/map-data-csv{/parent_id}');
36690949315SGreg Roach                $router->get(MapDataExportGeoJson::class, '/map-data-geojson{/parent_id}');
36790949315SGreg Roach                $router->get(MapDataImportPage::class, '/locations-import');
36890949315SGreg Roach                $router->post(MapDataImportAction::class, '/locations-import');
36990949315SGreg Roach                $router->get(MapDataList::class, '/map-data{/parent_id}');
37090949315SGreg Roach                $router->post(MapDataSave::class, '/map-data-update');
371ddb44b4cSGreg Roach                $router->get(MapProviderPage::class, '/map-provider');
372ddb44b4cSGreg Roach                $router->post(MapProviderAction::class, '/map-provider');
3739f667ff2SGreg Roach                $router->post(ModuleDeleteSettings::class, '/module-delete-settings');
3749f667ff2SGreg Roach                $router->get(ModulesAllPage::class, '/modules');
3759f667ff2SGreg Roach                $router->post(ModulesAllAction::class, '/modules');
3769f667ff2SGreg Roach                $router->get(ModulesAnalyticsPage::class, '/analytics');
3779f667ff2SGreg Roach                $router->post(ModulesAnalyticsAction::class, '/analytics');
3789f667ff2SGreg Roach                $router->get(ModulesBlocksPage::class, '/blocks');
3799f667ff2SGreg Roach                $router->post(ModulesBlocksAction::class, '/blocks');
3809f667ff2SGreg Roach                $router->get(ModulesChartsPage::class, '/charts');
3819f667ff2SGreg Roach                $router->post(ModulesChartsAction::class, '/charts');
3829f667ff2SGreg Roach                $router->get(ModulesDataFixesPage::class, '/data-fixes');
3839f667ff2SGreg Roach                $router->post(ModulesDataFixesAction::class, '/data-fixes');
3849f667ff2SGreg Roach                $router->get(ModulesFootersPage::class, '/footers');
3859f667ff2SGreg Roach                $router->post(ModulesFootersAction::class, '/footers');
3869f667ff2SGreg Roach                $router->get(ModulesHistoricEventsPage::class, '/historic-events');
3879f667ff2SGreg Roach                $router->post(ModulesHistoricEventsAction::class, '/historic-events');
3889f667ff2SGreg Roach                $router->get(ModulesListsPage::class, '/lists');
3899f667ff2SGreg Roach                $router->post(ModulesListsAction::class, '/lists');
3909f667ff2SGreg Roach                $router->get(ModulesMenusPage::class, '/menus');
3919f667ff2SGreg Roach                $router->post(ModulesMenusAction::class, '/menus');
3929f667ff2SGreg Roach                $router->get(ModulesLanguagesPage::class, '/languages');
3939f667ff2SGreg Roach                $router->post(ModulesLanguagesAction::class, '/languages');
3949f667ff2SGreg Roach                $router->get(ModulesReportsPage::class, '/reports');
3959f667ff2SGreg Roach                $router->post(ModulesReportsAction::class, '/reports');
3969f667ff2SGreg Roach                $router->get(ModulesSidebarsPage::class, '/sidebars');
3979f667ff2SGreg Roach                $router->post(ModulesSidebarsAction::class, '/sidebars');
3989f667ff2SGreg Roach                $router->get(ModulesTabsPage::class, '/tabs');
3999f667ff2SGreg Roach                $router->post(ModulesTabsAction::class, '/tabs');
4009f667ff2SGreg Roach                $router->get(ModulesThemesPage::class, '/themes');
4019f667ff2SGreg Roach                $router->post(ModulesThemesAction::class, '/themes');
4024b3ef6caSGreg Roach                $router->get(UpgradeWizardPage::class, '/upgrade');
4034b3ef6caSGreg Roach                $router->post(UpgradeWizardConfirm::class, '/upgrade-confirm');
4044b3ef6caSGreg Roach                $router->post(UpgradeWizardStep::class, '/upgrade-action');
4054c3563c0SGreg Roach                $router->get(UserListPage::class, '/admin-users');
4064c3563c0SGreg Roach                $router->get(UserListData::class, '/admin-users-data');
4074c3563c0SGreg Roach                $router->get(UserAddPage::class, '/admin-users-create');
4084c3563c0SGreg Roach                $router->post(UserAddAction::class, '/admin-users-create');
4094c3563c0SGreg Roach                $router->get(UserEditPage::class, '/admin-users-edit');
4104c3563c0SGreg Roach                $router->post(UserEditAction::class, '/admin-users-edit');
411451d4d87SGreg Roach                $router->get(SitePreferencesPage::class, '/site-preferences');
412451d4d87SGreg Roach                $router->post(SitePreferencesAction::class, '/site-preferences');
413451d4d87SGreg Roach                $router->get(SiteRegistrationPage::class, '/site-registration');
414451d4d87SGreg Roach                $router->post(SiteRegistrationAction::class, '/site-registration');
415451d4d87SGreg Roach                $router->get(TreePageDefaultEdit::class, '/trees/default-blocks');
416451d4d87SGreg Roach                $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks');
4176fd01894SGreg Roach                $router->get(MergeTreesPage::class, '/trees/merge');
4186fd01894SGreg Roach                $router->post(MergeTreesAction::class, '/trees/merge');
4196fd01894SGreg Roach                $router->post(SynchronizeTrees::class, '/trees/sync');
4206fd01894SGreg Roach                $router->post(DeleteUser::class, '/users/delete/{user_id}');
421451d4d87SGreg Roach                $router->get(UserPageDefaultEdit::class, '/user-page-default-edit');
422451d4d87SGreg Roach                $router->post(UserPageDefaultUpdate::class, '/user-page-default-update');
423cccedbe5SGreg Roach
424cccedbe5SGreg Roach                // @deprecated since 2.0.8 - will be removed in 2.1.0
425cccedbe5SGreg Roach                $router->get('modules', '/modules', ModulesAllPage::class);
4262279b4f3SGreg Roach            });
4272279b4f3SGreg Roach
42857796b09SGreg Roach            // Manager routes (multiple trees).
4292279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
4302279b4f3SGreg Roach                $router->extras([
431901ade19SGreg Roach                    'middleware' => [
432901ade19SGreg Roach                        AuthManager::class,
433901ade19SGreg Roach                    ],
4342279b4f3SGreg Roach                ]);
4352279b4f3SGreg Roach
4366fd01894SGreg Roach                $router->get(ManageTrees::class, '/trees/manage/{tree}');
4372279b4f3SGreg Roach            });
4382279b4f3SGreg Roach
4392279b4f3SGreg Roach            // Manager routes.
4402279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4412279b4f3SGreg Roach                $router->extras([
442901ade19SGreg Roach                    'middleware' => [
443901ade19SGreg Roach                        AuthManager::class,
444901ade19SGreg Roach                    ],
4452279b4f3SGreg Roach                ]);
4462279b4f3SGreg Roach
447451d4d87SGreg Roach                $router->get(PendingChangesLogPage::class, '/changes-log');
448451d4d87SGreg Roach                $router->post(PendingChangesLogAction::class, '/changes-log');
449451d4d87SGreg Roach                $router->get(PendingChangesLogData::class, '/changes-data');
450451d4d87SGreg Roach                $router->post(PendingChangesLogDelete::class, '/changes-delete');
451451d4d87SGreg Roach                $router->get(PendingChangesLogDownload::class, '/changes-download');
4526fd01894SGreg Roach                $router->get(CheckTree::class, '/check');
453451d4d87SGreg Roach                $router->get(DataFixChoose::class, '/data-fix');
454451d4d87SGreg Roach                $router->post(DataFixSelect::class, '/data-fix');
455451d4d87SGreg Roach                $router->get(DataFixPage::class, '/data-fix/{data_fix}');
456451d4d87SGreg Roach                $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update');
457451d4d87SGreg Roach                $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all');
458451d4d87SGreg Roach                $router->get(DataFixData::class, '/data-fix/{data_fix}/data');
459451d4d87SGreg Roach                $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview');
4606fd01894SGreg Roach                $router->get(FindDuplicateRecords::class, '/duplicates');
461451d4d87SGreg Roach                $router->get(ExportGedcomPage::class, '/export');
462451d4d87SGreg Roach                $router->post(ExportGedcomClient::class, '/export-client');
463451d4d87SGreg Roach                $router->post(ExportGedcomServer::class, '/export-server');
4646fd01894SGreg Roach                $router->get(ImportGedcomPage::class, '/import');
4656fd01894SGreg Roach                $router->post(ImportGedcomAction::class, '/import');
466451d4d87SGreg Roach                $router->get(MergeRecordsPage::class, '/merge-step1');
467451d4d87SGreg Roach                $router->post(MergeRecordsAction::class, '/merge-step1');
468451d4d87SGreg Roach                $router->get(MergeFactsPage::class, '/merge-step2');
469451d4d87SGreg Roach                $router->post(MergeFactsAction::class, '/merge-step2');
4706fd01894SGreg Roach                $router->get(TreePreferencesPage::class, '/preferences');
4716fd01894SGreg Roach                $router->post(TreePreferencesAction::class, '/preferences');
4726fd01894SGreg Roach                $router->get(RenumberTreePage::class, '/renumber');
4736fd01894SGreg Roach                $router->post(RenumberTreeAction::class, '/renumber');
474451d4d87SGreg Roach                $router->get(TreePageEdit::class, '/tree-page-edit');
4756fd01894SGreg Roach                $router->post(GedcomLoad::class, '/load');
476451d4d87SGreg Roach                $router->post(TreePageUpdate::class, '/tree-page-update');
477451d4d87SGreg Roach                $router->get(TreePageBlockEdit::class, '/tree-page-block-edit');
478451d4d87SGreg Roach                $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit');
4796fd01894SGreg Roach                $router->get(TreePrivacyPage::class, '/privacy');
4806fd01894SGreg Roach                $router->post(TreePrivacyAction::class, '/privacy');
481451d4d87SGreg Roach                $router->get(UnconnectedPage::class, '/unconnected');
482451d4d87SGreg Roach                $router->post(UnconnectedAction::class, '/unconnected');
4832279b4f3SGreg Roach            });
4842279b4f3SGreg Roach
4852279b4f3SGreg Roach            // Moderator routes.
4862279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4872279b4f3SGreg Roach                $router->extras([
488901ade19SGreg Roach                    'middleware' => [
489901ade19SGreg Roach                        AuthModerator::class,
490901ade19SGreg Roach                    ],
4912279b4f3SGreg Roach                ]);
492451d4d87SGreg Roach                $router->post(PendingChangesAcceptTree::class, '/accept');
493451d4d87SGreg Roach                $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}');
494451d4d87SGreg Roach                $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}');
495451d4d87SGreg Roach                $router->get(PendingChanges::class, '/pending');
496451d4d87SGreg Roach                $router->post(PendingChangesRejectTree::class, '/reject');
497451d4d87SGreg Roach                $router->post(PendingChangesRejectRecord::class, '/reject/{xref}');
498451d4d87SGreg Roach                $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}');
4992279b4f3SGreg Roach            });
5002279b4f3SGreg Roach
5012279b4f3SGreg Roach            // Editor routes.
5022279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5032279b4f3SGreg Roach                $router->extras([
504901ade19SGreg Roach                    'middleware' => [
505901ade19SGreg Roach                        AuthEditor::class,
506901ade19SGreg Roach                    ],
5072279b4f3SGreg Roach                ]);
5082279b4f3SGreg Roach
50963763244SGreg Roach                $router->get(AutoCompleteCitation::class, '/autocomplete/citation/{query}');
51063763244SGreg Roach                $router->get(AutoCompleteFolder::class, '/autocomplete/folder/{query}');
51163763244SGreg Roach                $router->get(AutoCompletePlace::class, '/autocomplete/place/{query}');
51263763244SGreg Roach                $router->get(AutoCompleteSurname::class, '/autocomplete/surname/{query}');
513451d4d87SGreg Roach                $router->get(AddChildToFamilyPage::class, '/add-child-to-family');
514451d4d87SGreg Roach                $router->post(AddChildToFamilyAction::class, '/add-child-to-family');
515451d4d87SGreg Roach                $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}');
516451d4d87SGreg Roach                $router->post(SelectNewFact::class, '/add-fact/{xref}');
517ddb44b4cSGreg Roach                $router->get(AddMediaFileModal::class, '/add-media-file/{xref}');
518ddb44b4cSGreg Roach                $router->post(AddMediaFileAction::class, '/add-media-file/{xref}');
519451d4d87SGreg Roach                $router->get(AddName::class, '/add-name');
520451d4d87SGreg Roach                $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family');
521451d4d87SGreg Roach                $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family');
522451d4d87SGreg Roach                $router->get(ChangeFamilyMembersPage::class, '/change-family-members');
523451d4d87SGreg Roach                $router->post(ChangeFamilyMembersAction::class, '/change-family-members');
524*c2ed51d1SGreg Roach                $router->get(CreateLocationModal::class, '/create-location');
525*c2ed51d1SGreg Roach                $router->post(CreateLocationAction::class, '/create-location');
526451d4d87SGreg Roach                $router->get(CreateMediaObjectModal::class, '/create-media-object');
527451d4d87SGreg Roach                $router->post(CreateMediaObjectAction::class, '/create-media-object');
528ddb44b4cSGreg Roach                $router->post(CreateMediaObjectFromFile::class, '/create-media-from-file');
529451d4d87SGreg Roach                $router->post(CopyFact::class, '/copy/{xref}/{fact_id}');
530451d4d87SGreg Roach                $router->get(CreateNoteModal::class, '/create-note-object');
531451d4d87SGreg Roach                $router->post(CreateNoteAction::class, '/create-note-object');
532451d4d87SGreg Roach                $router->get(CreateRepositoryModal::class, '/create-repository');
533451d4d87SGreg Roach                $router->post(CreateRepositoryAction::class, '/create-repository');
534451d4d87SGreg Roach                $router->get(CreateSourceModal::class, '/create-source');
535451d4d87SGreg Roach                $router->post(CreateSourceAction::class, '/create-source');
536451d4d87SGreg Roach                $router->get(CreateSubmitterModal::class, '/create-submitter');
537451d4d87SGreg Roach                $router->post(CreateSubmitterAction::class, '/create-submitter');
538*c2ed51d1SGreg Roach                $router->get(CreateSubmissionModal::class, '/create-submission');
539*c2ed51d1SGreg Roach                $router->post(CreateSubmissionAction::class, '/create-submission');
540451d4d87SGreg Roach                $router->post(DeleteRecord::class, '/delete/{xref}');
541451d4d87SGreg Roach                $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}');
542451d4d87SGreg Roach                $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}');
543451d4d87SGreg Roach                $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}');
544ddb44b4cSGreg Roach                $router->get(EditMediaFileModal::class, '/edit-media-file/{xref}/{fact_id}');
545ddb44b4cSGreg Roach                $router->post(EditMediaFileAction::class, '/edit-media-file/{xref}/{fact_id}');
546ddb44b4cSGreg Roach                $router->get(EditNotePage::class, '/edit-note-object/{xref}');
547ddb44b4cSGreg Roach                $router->post(EditNoteAction::class, '/edit-note-object/{xref}');
548451d4d87SGreg Roach                $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}');
549451d4d87SGreg Roach                $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}');
550451d4d87SGreg Roach                $router->get(EditRawRecordPage::class, '/edit-raw/{xref}');
551451d4d87SGreg Roach                $router->post(EditRawRecordAction::class, '/edit-raw/{xref}');
552ddb44b4cSGreg Roach                $router->get(LinkMediaToFamilyModal::class, '/link-media-to-family/{xref}');
553ddb44b4cSGreg Roach                $router->get(LinkMediaToIndividualModal::class, '/link-media-to-individual/{xref}');
554ddb44b4cSGreg Roach                $router->get(LinkMediaToSourceModal::class, '/link-media-to-source/{xref}');
555ddb44b4cSGreg Roach                $router->post(LinkMediaToRecordAction::class, '/link-media-to-record/{xref}');
556*c2ed51d1SGreg Roach                $router->get(EditRecordPage::class, '/edit-record/{xref}');
557*c2ed51d1SGreg Roach                $router->post(EditRecordAction::class, '/update-record/{xref}');
558451d4d87SGreg Roach                $router->post(PasteFact::class, '/paste-fact/{xref}');
559451d4d87SGreg Roach                $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}');
560451d4d87SGreg Roach                $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}');
561451d4d87SGreg Roach                $router->get(ReorderMediaPage::class, '/reorder-media/{xref}');
562451d4d87SGreg Roach                $router->post(ReorderMediaAction::class, '/reorder-media/{xref}');
563451d4d87SGreg Roach                $router->get(ReorderNamesPage::class, '/reorder-names/{xref}');
564451d4d87SGreg Roach                $router->post(ReorderNamesAction::class, '/reorder-names/{xref}');
565451d4d87SGreg Roach                $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}');
566451d4d87SGreg Roach                $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}');
567451d4d87SGreg Roach                $router->get(SearchReplacePage::class, '/search-replace');
568451d4d87SGreg Roach                $router->post(SearchReplaceAction::class, '/search-replace');
569451d4d87SGreg Roach                $router->get(AddChildToIndividualPage::class, '/add-child-to-individual');
570451d4d87SGreg Roach                $router->post(AddChildToIndividualAction::class, '/add-child-to-individual');
571451d4d87SGreg Roach                $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual');
572451d4d87SGreg Roach                $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual');
573451d4d87SGreg Roach                $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual');
574451d4d87SGreg Roach                $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual');
575451d4d87SGreg Roach                $router->get(AddUnlinkedPage::class, '/add-unlinked-individual');
576451d4d87SGreg Roach                $router->post(AddUnlinkedAction::class, '/add-unlinked-individual');
577451d4d87SGreg Roach                $router->get(LinkChildToFamilyPage::class, '/link-child-to-family');
578451d4d87SGreg Roach                $router->post(LinkChildToFamilyAction::class, '/link-child-to-family');
579451d4d87SGreg Roach                $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual');
580451d4d87SGreg Roach                $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual');
581451d4d87SGreg Roach                $router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
5822279b4f3SGreg Roach            });
5832279b4f3SGreg Roach
5848673e6b9SGreg Roach            // User routes with a tree.
5852279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5862279b4f3SGreg Roach                $router->extras([
587901ade19SGreg Roach                    'middleware' => [
5888673e6b9SGreg Roach                        AuthLoggedIn::class,
589901ade19SGreg Roach                    ],
5902279b4f3SGreg Roach                ]);
5912279b4f3SGreg Roach
592451d4d87SGreg Roach                $router->post(MessageSelect::class, '/message-select');
593451d4d87SGreg Roach                $router->get(MessagePage::class, '/message-compose');
594451d4d87SGreg Roach                $router->post(MessageAction::class, '/message-send');
595451d4d87SGreg Roach                $router->get(UserPage::class, '/my-page');
596451d4d87SGreg Roach                $router->get(UserPageBlock::class, '/my-page-block');
597451d4d87SGreg Roach                $router->get(UserPageEdit::class, '/my-page-edit');
598451d4d87SGreg Roach                $router->post(UserPageUpdate::class, '/my-page-edit');
599451d4d87SGreg Roach                $router->get(UserPageBlockEdit::class, '/my-page-block-edit');
600451d4d87SGreg Roach                $router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
6012279b4f3SGreg Roach            });
6022279b4f3SGreg Roach
6038673e6b9SGreg Roach            // User routes without a tree.
6042279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
6052279b4f3SGreg Roach                $router->extras([
606901ade19SGreg Roach                    'middleware' => [
607901ade19SGreg Roach                        AuthLoggedIn::class,
608901ade19SGreg Roach                    ],
6092279b4f3SGreg Roach                ]);
6102279b4f3SGreg Roach
611451d4d87SGreg Roach                $router->get(AccountEdit::class, '/my-account{/tree}');
612451d4d87SGreg Roach                $router->post(AccountUpdate::class, '/my-account{/tree}');
613451d4d87SGreg Roach                $router->post(AccountDelete::class, '/my-account-delete');
6142279b4f3SGreg Roach            });
6152279b4f3SGreg Roach
616f917a287SGreg Roach            // Visitor routes - with an optional tree (for sites with no public trees).
6172279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
618451d4d87SGreg Roach                $router->get(LoginPage::class, '/login{/tree}');
619451d4d87SGreg Roach                $router->post(LoginAction::class, '/login{/tree}');
620451d4d87SGreg Roach                $router->get(PasswordRequestPage::class, '/password-request{/tree}');
621451d4d87SGreg Roach                $router->post(PasswordRequestAction::class, '/password-request{/tree}');
622451d4d87SGreg Roach                $router->get(RegisterPage::class, '/register{/tree}');
623451d4d87SGreg Roach                $router->post(RegisterAction::class, '/register{/tree}');
624451d4d87SGreg Roach                $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}');
625451d4d87SGreg Roach                $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}');
626451d4d87SGreg Roach                $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}');
6272279b4f3SGreg Roach            });
6282279b4f3SGreg Roach
629b45ccc4fSGreg Roach            // Visitor routes with a tree.
6302279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
631451d4d87SGreg Roach                $router->get(TreePage::class, '');
632451d4d87SGreg Roach                $router->get(CalendarPage::class, '/calendar/{view}');
633451d4d87SGreg Roach                $router->post(CalendarAction::class, '/calendar/{view}');
634451d4d87SGreg Roach                $router->get(CalendarEvents::class, '/calendar-events/{view}');
635451d4d87SGreg Roach                $router->get(ContactPage::class, '/contact');
636451d4d87SGreg Roach                $router->post(ContactAction::class, '/contact');
637451d4d87SGreg Roach                $router->get(FamilyPage::class, '/family/{xref}{/slug}');
638451d4d87SGreg Roach                $router->get(HeaderPage::class, '/header/{xref}{/slug}');
639451d4d87SGreg Roach                $router->get(IndividualPage::class, '/individual/{xref}{/slug}');
640451d4d87SGreg Roach                $router->get(MediaFileThumbnail::class, '/media-thumbnail');
641451d4d87SGreg Roach                $router->get(MediaFileDownload::class, '/media-download');
642451d4d87SGreg Roach                $router->get(MediaPage::class, '/media/{xref}{/slug}');
643451d4d87SGreg Roach                $router->get(NotePage::class, '/note/{xref}{/slug}');
644451d4d87SGreg Roach                $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}');
645451d4d87SGreg Roach                $router->get(RepositoryPage::class, '/repository/{xref}{/slug}');
646451d4d87SGreg Roach                $router->get(ReportListPage::class, '/report');
647451d4d87SGreg Roach                $router->post(ReportListAction::class, '/report');
648451d4d87SGreg Roach                $router->get(ReportSetupPage::class, '/report/{report}');
649451d4d87SGreg Roach                $router->post(ReportSetupAction::class, '/report/{report}');
650451d4d87SGreg Roach                $router->get(ReportGenerate::class, '/report-run/{report}');
651451d4d87SGreg Roach                $router->get(SearchAdvancedPage::class, '/search-advanced');
652451d4d87SGreg Roach                $router->post(SearchAdvancedAction::class, '/search-advanced');
653451d4d87SGreg Roach                $router->get(SearchGeneralPage::class, '/search-general');
654451d4d87SGreg Roach                $router->post(SearchGeneralAction::class, '/search-general');
655451d4d87SGreg Roach                $router->get(SearchPhoneticPage::class, '/search-phonetic');
656451d4d87SGreg Roach                $router->post(SearchPhoneticAction::class, '/search-phonetic');
657451d4d87SGreg Roach                $router->post(SearchQuickAction::class, '/search-quick');
658451d4d87SGreg Roach                $router->post(Select2Family::class, '/select2-family');
659451d4d87SGreg Roach                $router->post(Select2Individual::class, '/select2-individual');
660*c2ed51d1SGreg Roach                $router->post(Select2Location::class, '/select2-location');
661451d4d87SGreg Roach                $router->post(Select2MediaObject::class, '/select2-media');
662451d4d87SGreg Roach                $router->post(Select2Note::class, '/select2-note');
663451d4d87SGreg Roach                $router->post(Select2Place::class, '/select2-place');
664451d4d87SGreg Roach                $router->post(Select2Source::class, '/select2-source');
665*c2ed51d1SGreg Roach                $router->post(Select2Submission::class, '/select2-submission');
666451d4d87SGreg Roach                $router->post(Select2Submitter::class, '/select2-submitter');
667451d4d87SGreg Roach                $router->post(Select2Repository::class, '/select2-repository');
668451d4d87SGreg Roach                $router->get(SourcePage::class, '/source/{xref}{/slug}');
669451d4d87SGreg Roach                $router->get(SubmissionPage::class, '/submission/{xref}{/slug}');
670451d4d87SGreg Roach                $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}');
671451d4d87SGreg Roach                $router->get(TreePageBlock::class, '/tree-page-block');
672451d4d87SGreg Roach                $router->get('example', '/…')
673451d4d87SGreg Roach                    ->isRoutable(false);
6742279b4f3SGreg Roach            });
6752279b4f3SGreg Roach
676b59ec43dSGreg Roach            // Match module routes, with and without a tree.
677b59ec43dSGreg Roach            $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class)
6782279b4f3SGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
679b59ec43dSGreg Roach            $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class)
680b59ec43dSGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
681b59ec43dSGreg Roach            // Generate module routes only. The router cannot distinguish a private tree from no tree.
682451d4d87SGreg Roach            $router->get('module', '/module/{module}/{action}{/tree}')
683451d4d87SGreg Roach                ->isRoutable(false);
6842279b4f3SGreg Roach
685451d4d87SGreg Roach            $router->get(HelpText::class, '/help/{topic}');
686451d4d87SGreg Roach            $router->post(SelectLanguage::class, '/language/{language}');
687451d4d87SGreg Roach            $router->post(Logout::class, '/logout');
68864c83a78SGreg Roach            $router->get(Ping::class, '/ping', Ping::class)
68964c83a78SGreg Roach                ->allows(RequestMethodInterface::METHOD_HEAD);
690451d4d87SGreg Roach            $router->get(RobotsTxt::class, '/robots.txt');
691451d4d87SGreg Roach            $router->post(SelectTheme::class, '/theme/{theme}');
692451d4d87SGreg Roach            $router->get(HomePage::class, '/');
6932279b4f3SGreg Roach
69446431a62SGreg Roach            // Some URL rewrite configurations will pass everything not in /public to index.php
695451d4d87SGreg Roach            $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png');
696451d4d87SGreg Roach            $router->get(FaviconIco::class, '/favicon.ico');
697901ade19SGreg Roach        });
6982279b4f3SGreg Roach    }
6992279b4f3SGreg Roach}
700