xref: /webtrees/app/Http/Routes/WebRoutes.php (revision 4b3ef6caf72914d34581bb4a8d677e615e877a9b)
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;
682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction;
69ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectFromFile;
702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal;
712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction;
722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal;
732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction;
742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal;
752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction;
762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal;
772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction;
782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal;
792279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction;
802279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage;
81ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose;
8255749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData;
8355749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage;
84ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview;
85ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect;
8655749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate;
8755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll;
882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact;
892279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath;
902279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord;
912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction;
922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser;
9355749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction;
94a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage;
95ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileAction;
96ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditMediaFileModal;
977c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditName;
989dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNoteAction;
999dce578dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditNotePage;
1002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction;
1012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage;
1022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction;
1032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage;
104901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction;
105901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage;
1066d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient;
1076d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage;
1086d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer;
1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage;
11046431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco;
1116fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords;
112*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaAction;
113*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaData;
114*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FixLevel0MediaPage;
1156fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad;
1162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage;
1171635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage;
1182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText;
1192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
1206fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction;
1216fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage;
122*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsAction;
123*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsData;
124*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportThumbnailsPage;
1252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage;
1267c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction;
1277c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage;
128ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToFamilyModal;
129ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToIndividualModal;
130ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToRecordAction;
131ddb44b4cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkMediaToSourceModal;
1327c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction;
1337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage;
1342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction;
1352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage;
1362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout;
1378ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaAction;
1388ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaData;
1398ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaPage;
1406fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
14190949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataAdd;
14294e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete;
14390949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataEdit;
14490949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportCSV;
14590949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataExportGeoJson;
14690949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportAction;
14790949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataImportPage;
14894e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList;
14990949315SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataSave;
150e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderAction;
151e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderPage;
152040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade;
15346b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload;
15446b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail;
1552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage;
1565bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction;
1575bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage;
1585bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction;
1595bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage;
1606fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction;
1616fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage;
162e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction;
163e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage;
164e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect;
1652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction;
1669f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings;
1676fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction;
1686fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
1699f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction;
1709f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
1719f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction;
1729f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage;
1739f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction;
1749f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage;
1759f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction;
1769f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage;
1779f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction;
1789f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage;
1799f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction;
1809f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage;
1819f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction;
1829f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage;
1839f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction;
1849f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage;
1859f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction;
1869f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage;
1879f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction;
1889f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage;
1899f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction;
1909f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage;
1919f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction;
1929f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage;
1939f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction;
1949f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage;
1952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage;
1962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction;
1972279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage;
1982279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction;
1992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage;
2002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact;
2012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges;
2022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange;
2032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
2042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree;
2052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction;
2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData;
2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete;
2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload;
2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage;
2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange;
2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree;
2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation;
2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping;
2152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction;
2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage;
2176fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction;
2186fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage;
2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction;
2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
221901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction;
222901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
2232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction;
2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage;
2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction;
2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage;
2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate;
2282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction;
2292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage;
2302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction;
2312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage;
2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
2332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt;
2342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction;
2352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage;
2362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction;
2372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage;
2382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction;
2392279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage;
2402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction;
2412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction;
2422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage;
2432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family;
2442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual;
2452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject;
2462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note;
247a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place;
2482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository;
2492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source;
2502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter;
2512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree;
2522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage;
2532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact;
2542279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme;
2552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction;
2562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData;
2572279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete;
2582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload;
2592279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage;
260c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction;
261c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage;
262c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction;
263c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage;
2642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
2651635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
266ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
2676fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
2688e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
2698e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
2708e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit;
2718e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate;
2728e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit;
2738e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate;
2748e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit;
2758e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate;
2766fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
2776fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage;
2786fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction;
2796fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage;
28096716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
28196716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage;
282*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardConfirm;
283*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardPage;
284*4b3ef6caSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpgradeWizardStep;
2858ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction;
2868ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage;
2874c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddAction;
2884c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserAddPage;
2894c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditAction;
2904c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserEditPage;
2914c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListData;
2924c3563c0SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserListPage;
2938e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
2948e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
2958e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit;
2968e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate;
2978e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit;
2988e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate;
2998e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit;
3008e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate;
3012474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction;
3022474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage;
3032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail;
3042279b4f3SGreg Roach
3052279b4f3SGreg Roach/**
3062279b4f3SGreg Roach * Routing table for web requests
3072279b4f3SGreg Roach */
3082279b4f3SGreg Roachclass WebRoutes
3092279b4f3SGreg Roach{
3102279b4f3SGreg Roach    public function load(Map $router): void
3112279b4f3SGreg Roach    {
312901ade19SGreg Roach        $router->attach('', '', static function (Map $router) {
3132279b4f3SGreg Roach            // Admin routes.
3142279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
3152279b4f3SGreg Roach                $router->extras([
316901ade19SGreg Roach                    'middleware' => [
317901ade19SGreg Roach                        AuthAdministrator::class,
318901ade19SGreg Roach                    ],
3192279b4f3SGreg Roach                ]);
3202279b4f3SGreg Roach
321451d4d87SGreg Roach                $router->get(ControlPanel::class, '');
322451d4d87SGreg Roach                $router->get(BroadcastPage::class, '/broadcast');
323451d4d87SGreg Roach                $router->post(BroadcastAction::class, '/broadcast');
324451d4d87SGreg Roach                $router->get(CleanDataFolder::class, '/clean');
325451d4d87SGreg Roach                $router->post(DeletePath::class, '/delete-path');
326451d4d87SGreg Roach                $router->get(EmailPreferencesPage::class, '/email');
327451d4d87SGreg Roach                $router->post(EmailPreferencesAction::class, '/email');
328*4b3ef6caSGreg Roach                $router->get(FixLevel0MediaPage::class, '/fix-level-0-media');
329*4b3ef6caSGreg Roach                $router->post(FixLevel0MediaAction::class, '/fix-level-0-media');
330*4b3ef6caSGreg Roach                $router->get(FixLevel0MediaData::class, '/fix-level-0-media-data');
331451d4d87SGreg Roach                $router->get(PhpInformation::class, '/information');
332451d4d87SGreg Roach                $router->get(SiteLogsPage::class, '/logs');
333451d4d87SGreg Roach                $router->post(SiteLogsAction::class, '/logs');
334451d4d87SGreg Roach                $router->get(SiteLogsData::class, '/logs-data');
335451d4d87SGreg Roach                $router->post(SiteLogsDelete::class, '/logs-delete');
336451d4d87SGreg Roach                $router->get(SiteLogsDownload::class, '/logs-download');
337451d4d87SGreg Roach                $router->post(Masquerade::class, '/masquerade/{user_id}');
338ddb44b4cSGreg Roach                $router->get(ManageMediaPage::class, '/media');
339ddb44b4cSGreg Roach                $router->post(ManageMediaAction::class, '/media');
340ddb44b4cSGreg Roach                $router->get(ManageMediaData::class, '/media-data');
341ddb44b4cSGreg Roach                $router->get(UploadMediaPage::class, '/media-upload');
342ddb44b4cSGreg Roach                $router->post(UploadMediaAction::class, '/media-upload');
34310a93a5fSGreg Roach                $router->get(AdminMediaFileDownload::class, '/media-file');
34410a93a5fSGreg Roach                $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail');
345451d4d87SGreg Roach                $router->get(CreateTreePage::class, '/trees/create');
346451d4d87SGreg Roach                $router->post(CreateTreeAction::class, '/trees/create');
347451d4d87SGreg Roach                $router->post(SelectDefaultTree::class, '/trees/default/{tree}');
348451d4d87SGreg Roach                $router->post(DeleteTreeAction::class, '/trees/delete/{tree}');
349*4b3ef6caSGreg Roach                $router->get(ImportThumbnailsPage::class, '/webtrees1-thumbs');
350*4b3ef6caSGreg Roach                $router->post(ImportThumbnailsAction::class, '/webtrees1-thumbs');
351*4b3ef6caSGreg Roach                $router->get(ImportThumbnailsData::class, '/webtrees1-thumbs-data');
352451d4d87SGreg Roach                $router->get(UsersCleanupPage::class, '/users-cleanup');
353451d4d87SGreg Roach                $router->post(UsersCleanupAction::class, '/users-cleanup');
35490949315SGreg Roach                $router->get(MapDataAdd::class, '/map-data-add{/parent_id}');
35590949315SGreg Roach                $router->post(MapDataDelete::class, '/map-data-delete/{place_id}');
35690949315SGreg Roach                $router->get(MapDataEdit::class, '/map-data-edit/{place_id}');
35790949315SGreg Roach                $router->get(MapDataExportCSV::class, '/map-data-csv{/parent_id}');
35890949315SGreg Roach                $router->get(MapDataExportGeoJson::class, '/map-data-geojson{/parent_id}');
35990949315SGreg Roach                $router->get(MapDataImportPage::class, '/locations-import');
36090949315SGreg Roach                $router->post(MapDataImportAction::class, '/locations-import');
36190949315SGreg Roach                $router->get(MapDataList::class, '/map-data{/parent_id}');
36290949315SGreg Roach                $router->post(MapDataSave::class, '/map-data-update');
363ddb44b4cSGreg Roach                $router->get(MapProviderPage::class, '/map-provider');
364ddb44b4cSGreg Roach                $router->post(MapProviderAction::class, '/map-provider');
3659f667ff2SGreg Roach                $router->post(ModuleDeleteSettings::class, '/module-delete-settings');
3669f667ff2SGreg Roach                $router->get(ModulesAllPage::class, '/modules');
3679f667ff2SGreg Roach                $router->post(ModulesAllAction::class, '/modules');
3689f667ff2SGreg Roach                $router->get(ModulesAnalyticsPage::class, '/analytics');
3699f667ff2SGreg Roach                $router->post(ModulesAnalyticsAction::class, '/analytics');
3709f667ff2SGreg Roach                $router->get(ModulesBlocksPage::class, '/blocks');
3719f667ff2SGreg Roach                $router->post(ModulesBlocksAction::class, '/blocks');
3729f667ff2SGreg Roach                $router->get(ModulesChartsPage::class, '/charts');
3739f667ff2SGreg Roach                $router->post(ModulesChartsAction::class, '/charts');
3749f667ff2SGreg Roach                $router->get(ModulesDataFixesPage::class, '/data-fixes');
3759f667ff2SGreg Roach                $router->post(ModulesDataFixesAction::class, '/data-fixes');
3769f667ff2SGreg Roach                $router->get(ModulesFootersPage::class, '/footers');
3779f667ff2SGreg Roach                $router->post(ModulesFootersAction::class, '/footers');
3789f667ff2SGreg Roach                $router->get(ModulesHistoricEventsPage::class, '/historic-events');
3799f667ff2SGreg Roach                $router->post(ModulesHistoricEventsAction::class, '/historic-events');
3809f667ff2SGreg Roach                $router->get(ModulesListsPage::class, '/lists');
3819f667ff2SGreg Roach                $router->post(ModulesListsAction::class, '/lists');
3829f667ff2SGreg Roach                $router->get(ModulesMenusPage::class, '/menus');
3839f667ff2SGreg Roach                $router->post(ModulesMenusAction::class, '/menus');
3849f667ff2SGreg Roach                $router->get(ModulesLanguagesPage::class, '/languages');
3859f667ff2SGreg Roach                $router->post(ModulesLanguagesAction::class, '/languages');
3869f667ff2SGreg Roach                $router->get(ModulesReportsPage::class, '/reports');
3879f667ff2SGreg Roach                $router->post(ModulesReportsAction::class, '/reports');
3889f667ff2SGreg Roach                $router->get(ModulesSidebarsPage::class, '/sidebars');
3899f667ff2SGreg Roach                $router->post(ModulesSidebarsAction::class, '/sidebars');
3909f667ff2SGreg Roach                $router->get(ModulesTabsPage::class, '/tabs');
3919f667ff2SGreg Roach                $router->post(ModulesTabsAction::class, '/tabs');
3929f667ff2SGreg Roach                $router->get(ModulesThemesPage::class, '/themes');
3939f667ff2SGreg Roach                $router->post(ModulesThemesAction::class, '/themes');
394*4b3ef6caSGreg Roach                $router->get(UpgradeWizardPage::class, '/upgrade');
395*4b3ef6caSGreg Roach                $router->post(UpgradeWizardConfirm::class, '/upgrade-confirm');
396*4b3ef6caSGreg Roach                $router->post(UpgradeWizardStep::class, '/upgrade-action');
3974c3563c0SGreg Roach                $router->get(UserListPage::class, '/admin-users');
3984c3563c0SGreg Roach                $router->get(UserListData::class, '/admin-users-data');
3994c3563c0SGreg Roach                $router->get(UserAddPage::class, '/admin-users-create');
4004c3563c0SGreg Roach                $router->post(UserAddAction::class, '/admin-users-create');
4014c3563c0SGreg Roach                $router->get(UserEditPage::class, '/admin-users-edit');
4024c3563c0SGreg Roach                $router->post(UserEditAction::class, '/admin-users-edit');
403451d4d87SGreg Roach                $router->get(SitePreferencesPage::class, '/site-preferences');
404451d4d87SGreg Roach                $router->post(SitePreferencesAction::class, '/site-preferences');
405451d4d87SGreg Roach                $router->get(SiteRegistrationPage::class, '/site-registration');
406451d4d87SGreg Roach                $router->post(SiteRegistrationAction::class, '/site-registration');
407451d4d87SGreg Roach                $router->get(TreePageDefaultEdit::class, '/trees/default-blocks');
408451d4d87SGreg Roach                $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks');
4096fd01894SGreg Roach                $router->get(MergeTreesPage::class, '/trees/merge');
4106fd01894SGreg Roach                $router->post(MergeTreesAction::class, '/trees/merge');
4116fd01894SGreg Roach                $router->post(SynchronizeTrees::class, '/trees/sync');
4126fd01894SGreg Roach                $router->post(DeleteUser::class, '/users/delete/{user_id}');
413451d4d87SGreg Roach                $router->get(UserPageDefaultEdit::class, '/user-page-default-edit');
414451d4d87SGreg Roach                $router->post(UserPageDefaultUpdate::class, '/user-page-default-update');
415cccedbe5SGreg Roach
416cccedbe5SGreg Roach                // @deprecated since 2.0.8 - will be removed in 2.1.0
417cccedbe5SGreg Roach                $router->get('modules', '/modules', ModulesAllPage::class);
4182279b4f3SGreg Roach            });
4192279b4f3SGreg Roach
42057796b09SGreg Roach            // Manager routes (multiple trees).
4212279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
4222279b4f3SGreg Roach                $router->extras([
423901ade19SGreg Roach                    'middleware' => [
424901ade19SGreg Roach                        AuthManager::class,
425901ade19SGreg Roach                    ],
4262279b4f3SGreg Roach                ]);
4272279b4f3SGreg Roach
4286fd01894SGreg Roach                $router->get(ManageTrees::class, '/trees/manage/{tree}');
4292279b4f3SGreg Roach            });
4302279b4f3SGreg Roach
4312279b4f3SGreg Roach            // Manager routes.
4322279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4332279b4f3SGreg Roach                $router->extras([
434901ade19SGreg Roach                    'middleware' => [
435901ade19SGreg Roach                        AuthManager::class,
436901ade19SGreg Roach                    ],
4372279b4f3SGreg Roach                ]);
4382279b4f3SGreg Roach
439451d4d87SGreg Roach                $router->get(PendingChangesLogPage::class, '/changes-log');
440451d4d87SGreg Roach                $router->post(PendingChangesLogAction::class, '/changes-log');
441451d4d87SGreg Roach                $router->get(PendingChangesLogData::class, '/changes-data');
442451d4d87SGreg Roach                $router->post(PendingChangesLogDelete::class, '/changes-delete');
443451d4d87SGreg Roach                $router->get(PendingChangesLogDownload::class, '/changes-download');
4446fd01894SGreg Roach                $router->get(CheckTree::class, '/check');
445451d4d87SGreg Roach                $router->get(DataFixChoose::class, '/data-fix');
446451d4d87SGreg Roach                $router->post(DataFixSelect::class, '/data-fix');
447451d4d87SGreg Roach                $router->get(DataFixPage::class, '/data-fix/{data_fix}');
448451d4d87SGreg Roach                $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update');
449451d4d87SGreg Roach                $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all');
450451d4d87SGreg Roach                $router->get(DataFixData::class, '/data-fix/{data_fix}/data');
451451d4d87SGreg Roach                $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview');
4526fd01894SGreg Roach                $router->get(FindDuplicateRecords::class, '/duplicates');
453451d4d87SGreg Roach                $router->get(ExportGedcomPage::class, '/export');
454451d4d87SGreg Roach                $router->post(ExportGedcomClient::class, '/export-client');
455451d4d87SGreg Roach                $router->post(ExportGedcomServer::class, '/export-server');
4566fd01894SGreg Roach                $router->get(ImportGedcomPage::class, '/import');
4576fd01894SGreg Roach                $router->post(ImportGedcomAction::class, '/import');
458451d4d87SGreg Roach                $router->get(MergeRecordsPage::class, '/merge-step1');
459451d4d87SGreg Roach                $router->post(MergeRecordsAction::class, '/merge-step1');
460451d4d87SGreg Roach                $router->get(MergeFactsPage::class, '/merge-step2');
461451d4d87SGreg Roach                $router->post(MergeFactsAction::class, '/merge-step2');
4626fd01894SGreg Roach                $router->get(TreePreferencesPage::class, '/preferences');
4636fd01894SGreg Roach                $router->post(TreePreferencesAction::class, '/preferences');
4646fd01894SGreg Roach                $router->get(RenumberTreePage::class, '/renumber');
4656fd01894SGreg Roach                $router->post(RenumberTreeAction::class, '/renumber');
466451d4d87SGreg Roach                $router->get(TreePageEdit::class, '/tree-page-edit');
4676fd01894SGreg Roach                $router->post(GedcomLoad::class, '/load');
468451d4d87SGreg Roach                $router->post(TreePageUpdate::class, '/tree-page-update');
469451d4d87SGreg Roach                $router->get(TreePageBlockEdit::class, '/tree-page-block-edit');
470451d4d87SGreg Roach                $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit');
4716fd01894SGreg Roach                $router->get(TreePrivacyPage::class, '/privacy');
4726fd01894SGreg Roach                $router->post(TreePrivacyAction::class, '/privacy');
473451d4d87SGreg Roach                $router->get(UnconnectedPage::class, '/unconnected');
474451d4d87SGreg Roach                $router->post(UnconnectedAction::class, '/unconnected');
4752279b4f3SGreg Roach            });
4762279b4f3SGreg Roach
4772279b4f3SGreg Roach            // Moderator routes.
4782279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4792279b4f3SGreg Roach                $router->extras([
480901ade19SGreg Roach                    'middleware' => [
481901ade19SGreg Roach                        AuthModerator::class,
482901ade19SGreg Roach                    ],
4832279b4f3SGreg Roach                ]);
484451d4d87SGreg Roach                $router->post(PendingChangesAcceptTree::class, '/accept');
485451d4d87SGreg Roach                $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}');
486451d4d87SGreg Roach                $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}');
487451d4d87SGreg Roach                $router->get(PendingChanges::class, '/pending');
488451d4d87SGreg Roach                $router->post(PendingChangesRejectTree::class, '/reject');
489451d4d87SGreg Roach                $router->post(PendingChangesRejectRecord::class, '/reject/{xref}');
490451d4d87SGreg Roach                $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}');
4912279b4f3SGreg Roach            });
4922279b4f3SGreg Roach
4932279b4f3SGreg Roach            // Editor routes.
4942279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4952279b4f3SGreg Roach                $router->extras([
496901ade19SGreg Roach                    'middleware' => [
497901ade19SGreg Roach                        AuthEditor::class,
498901ade19SGreg Roach                    ],
4992279b4f3SGreg Roach                ]);
5002279b4f3SGreg Roach
50163763244SGreg Roach                $router->get(AutoCompleteCitation::class, '/autocomplete/citation/{query}');
50263763244SGreg Roach                $router->get(AutoCompleteFolder::class, '/autocomplete/folder/{query}');
50363763244SGreg Roach                $router->get(AutoCompletePlace::class, '/autocomplete/place/{query}');
50463763244SGreg Roach                $router->get(AutoCompleteSurname::class, '/autocomplete/surname/{query}');
505451d4d87SGreg Roach                $router->get(AddChildToFamilyPage::class, '/add-child-to-family');
506451d4d87SGreg Roach                $router->post(AddChildToFamilyAction::class, '/add-child-to-family');
507451d4d87SGreg Roach                $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}');
508451d4d87SGreg Roach                $router->post(SelectNewFact::class, '/add-fact/{xref}');
509ddb44b4cSGreg Roach                $router->get(AddMediaFileModal::class, '/add-media-file/{xref}');
510ddb44b4cSGreg Roach                $router->post(AddMediaFileAction::class, '/add-media-file/{xref}');
511451d4d87SGreg Roach                $router->get(AddName::class, '/add-name');
512451d4d87SGreg Roach                $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family');
513451d4d87SGreg Roach                $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family');
514451d4d87SGreg Roach                $router->get(ChangeFamilyMembersPage::class, '/change-family-members');
515451d4d87SGreg Roach                $router->post(ChangeFamilyMembersAction::class, '/change-family-members');
516451d4d87SGreg Roach                $router->get(CreateMediaObjectModal::class, '/create-media-object');
517451d4d87SGreg Roach                $router->post(CreateMediaObjectAction::class, '/create-media-object');
518ddb44b4cSGreg Roach                $router->post(CreateMediaObjectFromFile::class, '/create-media-from-file');
519451d4d87SGreg Roach                $router->post(CopyFact::class, '/copy/{xref}/{fact_id}');
520451d4d87SGreg Roach                $router->get(CreateNoteModal::class, '/create-note-object');
521451d4d87SGreg Roach                $router->post(CreateNoteAction::class, '/create-note-object');
522451d4d87SGreg Roach                $router->get(CreateRepositoryModal::class, '/create-repository');
523451d4d87SGreg Roach                $router->post(CreateRepositoryAction::class, '/create-repository');
524451d4d87SGreg Roach                $router->get(CreateSourceModal::class, '/create-source');
525451d4d87SGreg Roach                $router->post(CreateSourceAction::class, '/create-source');
526451d4d87SGreg Roach                $router->get(CreateSubmitterModal::class, '/create-submitter');
527451d4d87SGreg Roach                $router->post(CreateSubmitterAction::class, '/create-submitter');
528451d4d87SGreg Roach                $router->post(DeleteRecord::class, '/delete/{xref}');
529451d4d87SGreg Roach                $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}');
530451d4d87SGreg Roach                $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}');
531451d4d87SGreg Roach                $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}');
532ddb44b4cSGreg Roach                $router->get(EditMediaFileModal::class, '/edit-media-file/{xref}/{fact_id}');
533ddb44b4cSGreg Roach                $router->post(EditMediaFileAction::class, '/edit-media-file/{xref}/{fact_id}');
534ddb44b4cSGreg Roach                $router->get(EditNotePage::class, '/edit-note-object/{xref}');
535ddb44b4cSGreg Roach                $router->post(EditNoteAction::class, '/edit-note-object/{xref}');
536451d4d87SGreg Roach                $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}');
537451d4d87SGreg Roach                $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}');
538451d4d87SGreg Roach                $router->get(EditRawRecordPage::class, '/edit-raw/{xref}');
539451d4d87SGreg Roach                $router->post(EditRawRecordAction::class, '/edit-raw/{xref}');
540ddb44b4cSGreg Roach                $router->get(LinkMediaToFamilyModal::class, '/link-media-to-family/{xref}');
541ddb44b4cSGreg Roach                $router->get(LinkMediaToIndividualModal::class, '/link-media-to-individual/{xref}');
542ddb44b4cSGreg Roach                $router->get(LinkMediaToSourceModal::class, '/link-media-to-source/{xref}');
543ddb44b4cSGreg Roach                $router->post(LinkMediaToRecordAction::class, '/link-media-to-record/{xref}');
544451d4d87SGreg Roach                $router->post(PasteFact::class, '/paste-fact/{xref}');
545451d4d87SGreg Roach                $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}');
546451d4d87SGreg Roach                $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}');
547451d4d87SGreg Roach                $router->get(ReorderMediaPage::class, '/reorder-media/{xref}');
548451d4d87SGreg Roach                $router->post(ReorderMediaAction::class, '/reorder-media/{xref}');
549451d4d87SGreg Roach                $router->get(ReorderNamesPage::class, '/reorder-names/{xref}');
550451d4d87SGreg Roach                $router->post(ReorderNamesAction::class, '/reorder-names/{xref}');
551451d4d87SGreg Roach                $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}');
552451d4d87SGreg Roach                $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}');
553451d4d87SGreg Roach                $router->get(SearchReplacePage::class, '/search-replace');
554451d4d87SGreg Roach                $router->post(SearchReplaceAction::class, '/search-replace');
555451d4d87SGreg Roach                $router->get(AddChildToIndividualPage::class, '/add-child-to-individual');
556451d4d87SGreg Roach                $router->post(AddChildToIndividualAction::class, '/add-child-to-individual');
557451d4d87SGreg Roach                $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual');
558451d4d87SGreg Roach                $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual');
559451d4d87SGreg Roach                $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual');
560451d4d87SGreg Roach                $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual');
561451d4d87SGreg Roach                $router->get(AddUnlinkedPage::class, '/add-unlinked-individual');
562451d4d87SGreg Roach                $router->post(AddUnlinkedAction::class, '/add-unlinked-individual');
563451d4d87SGreg Roach                $router->get(LinkChildToFamilyPage::class, '/link-child-to-family');
564451d4d87SGreg Roach                $router->post(LinkChildToFamilyAction::class, '/link-child-to-family');
565451d4d87SGreg Roach                $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual');
566451d4d87SGreg Roach                $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual');
567451d4d87SGreg Roach                $router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
5682279b4f3SGreg Roach            });
5692279b4f3SGreg Roach
5708673e6b9SGreg Roach            // User routes with a tree.
5712279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5722279b4f3SGreg Roach                $router->extras([
573901ade19SGreg Roach                    'middleware' => [
5748673e6b9SGreg Roach                        AuthLoggedIn::class,
575901ade19SGreg Roach                    ],
5762279b4f3SGreg Roach                ]);
5772279b4f3SGreg Roach
578451d4d87SGreg Roach                $router->post(MessageSelect::class, '/message-select');
579451d4d87SGreg Roach                $router->get(MessagePage::class, '/message-compose');
580451d4d87SGreg Roach                $router->post(MessageAction::class, '/message-send');
581451d4d87SGreg Roach                $router->get(UserPage::class, '/my-page');
582451d4d87SGreg Roach                $router->get(UserPageBlock::class, '/my-page-block');
583451d4d87SGreg Roach                $router->get(UserPageEdit::class, '/my-page-edit');
584451d4d87SGreg Roach                $router->post(UserPageUpdate::class, '/my-page-edit');
585451d4d87SGreg Roach                $router->get(UserPageBlockEdit::class, '/my-page-block-edit');
586451d4d87SGreg Roach                $router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
5872279b4f3SGreg Roach            });
5882279b4f3SGreg Roach
5898673e6b9SGreg Roach            // User routes without a tree.
5902279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
5912279b4f3SGreg Roach                $router->extras([
592901ade19SGreg Roach                    'middleware' => [
593901ade19SGreg Roach                        AuthLoggedIn::class,
594901ade19SGreg Roach                    ],
5952279b4f3SGreg Roach                ]);
5962279b4f3SGreg Roach
597451d4d87SGreg Roach                $router->get(AccountEdit::class, '/my-account{/tree}');
598451d4d87SGreg Roach                $router->post(AccountUpdate::class, '/my-account{/tree}');
599451d4d87SGreg Roach                $router->post(AccountDelete::class, '/my-account-delete');
6002279b4f3SGreg Roach            });
6012279b4f3SGreg Roach
602f917a287SGreg Roach            // Visitor routes - with an optional tree (for sites with no public trees).
6032279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
604451d4d87SGreg Roach                $router->get(LoginPage::class, '/login{/tree}');
605451d4d87SGreg Roach                $router->post(LoginAction::class, '/login{/tree}');
606451d4d87SGreg Roach                $router->get(PasswordRequestPage::class, '/password-request{/tree}');
607451d4d87SGreg Roach                $router->post(PasswordRequestAction::class, '/password-request{/tree}');
608451d4d87SGreg Roach                $router->get(RegisterPage::class, '/register{/tree}');
609451d4d87SGreg Roach                $router->post(RegisterAction::class, '/register{/tree}');
610451d4d87SGreg Roach                $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}');
611451d4d87SGreg Roach                $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}');
612451d4d87SGreg Roach                $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}');
6132279b4f3SGreg Roach            });
6142279b4f3SGreg Roach
615b45ccc4fSGreg Roach            // Visitor routes with a tree.
6162279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
617451d4d87SGreg Roach                $router->get(TreePage::class, '');
618451d4d87SGreg Roach                $router->get(CalendarPage::class, '/calendar/{view}');
619451d4d87SGreg Roach                $router->post(CalendarAction::class, '/calendar/{view}');
620451d4d87SGreg Roach                $router->get(CalendarEvents::class, '/calendar-events/{view}');
621451d4d87SGreg Roach                $router->get(ContactPage::class, '/contact');
622451d4d87SGreg Roach                $router->post(ContactAction::class, '/contact');
623451d4d87SGreg Roach                $router->get(FamilyPage::class, '/family/{xref}{/slug}');
624451d4d87SGreg Roach                $router->get(HeaderPage::class, '/header/{xref}{/slug}');
625451d4d87SGreg Roach                $router->get(IndividualPage::class, '/individual/{xref}{/slug}');
626451d4d87SGreg Roach                $router->get(MediaFileThumbnail::class, '/media-thumbnail');
627451d4d87SGreg Roach                $router->get(MediaFileDownload::class, '/media-download');
628451d4d87SGreg Roach                $router->get(MediaPage::class, '/media/{xref}{/slug}');
629451d4d87SGreg Roach                $router->get(NotePage::class, '/note/{xref}{/slug}');
630451d4d87SGreg Roach                $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}');
631451d4d87SGreg Roach                $router->get(RepositoryPage::class, '/repository/{xref}{/slug}');
632451d4d87SGreg Roach                $router->get(ReportListPage::class, '/report');
633451d4d87SGreg Roach                $router->post(ReportListAction::class, '/report');
634451d4d87SGreg Roach                $router->get(ReportSetupPage::class, '/report/{report}');
635451d4d87SGreg Roach                $router->post(ReportSetupAction::class, '/report/{report}');
636451d4d87SGreg Roach                $router->get(ReportGenerate::class, '/report-run/{report}');
637451d4d87SGreg Roach                $router->get(SearchAdvancedPage::class, '/search-advanced');
638451d4d87SGreg Roach                $router->post(SearchAdvancedAction::class, '/search-advanced');
639451d4d87SGreg Roach                $router->get(SearchGeneralPage::class, '/search-general');
640451d4d87SGreg Roach                $router->post(SearchGeneralAction::class, '/search-general');
641451d4d87SGreg Roach                $router->get(SearchPhoneticPage::class, '/search-phonetic');
642451d4d87SGreg Roach                $router->post(SearchPhoneticAction::class, '/search-phonetic');
643451d4d87SGreg Roach                $router->post(SearchQuickAction::class, '/search-quick');
644451d4d87SGreg Roach                $router->post(Select2Family::class, '/select2-family');
645451d4d87SGreg Roach                $router->post(Select2Individual::class, '/select2-individual');
646451d4d87SGreg Roach                $router->post(Select2MediaObject::class, '/select2-media');
647451d4d87SGreg Roach                $router->post(Select2Note::class, '/select2-note');
648451d4d87SGreg Roach                $router->post(Select2Place::class, '/select2-place');
649451d4d87SGreg Roach                $router->post(Select2Source::class, '/select2-source');
650451d4d87SGreg Roach                $router->post(Select2Submitter::class, '/select2-submitter');
651451d4d87SGreg Roach                $router->post(Select2Repository::class, '/select2-repository');
652451d4d87SGreg Roach                $router->get(SourcePage::class, '/source/{xref}{/slug}');
653451d4d87SGreg Roach                $router->get(SubmissionPage::class, '/submission/{xref}{/slug}');
654451d4d87SGreg Roach                $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}');
655451d4d87SGreg Roach                $router->get(TreePageBlock::class, '/tree-page-block');
656451d4d87SGreg Roach                $router->get('example', '/…')
657451d4d87SGreg Roach                    ->isRoutable(false);
6582279b4f3SGreg Roach            });
6592279b4f3SGreg Roach
660b59ec43dSGreg Roach            // Match module routes, with and without a tree.
661b59ec43dSGreg Roach            $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class)
6622279b4f3SGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
663b59ec43dSGreg Roach            $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class)
664b59ec43dSGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
665b59ec43dSGreg Roach            // Generate module routes only. The router cannot distinguish a private tree from no tree.
666451d4d87SGreg Roach            $router->get('module', '/module/{module}/{action}{/tree}')
667451d4d87SGreg Roach                ->isRoutable(false);
6682279b4f3SGreg Roach
669451d4d87SGreg Roach            $router->get(HelpText::class, '/help/{topic}');
670451d4d87SGreg Roach            $router->post(SelectLanguage::class, '/language/{language}');
671451d4d87SGreg Roach            $router->post(Logout::class, '/logout');
67264c83a78SGreg Roach            $router->get(Ping::class, '/ping', Ping::class)
67364c83a78SGreg Roach                ->allows(RequestMethodInterface::METHOD_HEAD);
674451d4d87SGreg Roach            $router->get(RobotsTxt::class, '/robots.txt');
675451d4d87SGreg Roach            $router->post(SelectTheme::class, '/theme/{theme}');
676451d4d87SGreg Roach            $router->get(HomePage::class, '/');
6772279b4f3SGreg Roach
67846431a62SGreg Roach            // Some URL rewrite configurations will pass everything not in /public to index.php
679451d4d87SGreg Roach            $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png');
680451d4d87SGreg Roach            $router->get(FaviconIco::class, '/favicon.ico');
681901ade19SGreg Roach        });
6822279b4f3SGreg Roach    }
6832279b4f3SGreg Roach}
684