xref: /webtrees/app/Http/Routes/WebRoutes.php (revision e172383b8d1dc462218f743b1e04ca6a5babd14e)
12279b4f3SGreg Roach<?php
22279b4f3SGreg Roach
32279b4f3SGreg Roach/**
42279b4f3SGreg Roach * webtrees: online genealogy
52279b4f3SGreg Roach * Copyright (C) 2019 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
152279b4f3SGreg Roach * along with this program. If not, see <http://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;
367c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddName;
372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
387c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualAction;
397c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualPage;
407c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyAction;
417c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage;
427c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualAction;
437c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualPage;
447c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedAction;
457c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedPage;
466577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileDownload;
476577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileThumbnail;
4846431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppleTouchIconPng;
4963763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteCitation;
5063763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteFolder;
5163763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompletePlace;
5263763244SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteSurname;
53e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction;
54e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage;
55b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarAction;
56b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarEvents;
57b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarPage;
5843322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersAction;
5943322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersPage;
606fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckTree;
612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder;
62e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction;
63e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage;
642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact;
662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction;
672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal;
682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction;
692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal;
702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction;
712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal;
722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction;
732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal;
742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction;
752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal;
762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction;
772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage;
78ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose;
7955749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData;
8055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage;
81ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview;
82ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect;
8355749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate;
8455749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll;
852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact;
862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath;
872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord;
882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction;
892279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser;
9055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction;
91a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage;
927c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditName;
932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction;
942279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage;
952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction;
962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage;
97901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction;
98901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage;
996d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient;
1006d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage;
1016d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer;
1022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage;
10346431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco;
1046fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords;
1056fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad;
1062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage;
1071635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage;
1082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText;
1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
1106fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction;
1116fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage;
1122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage;
1137c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction;
1147c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage;
1157c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction;
1167c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage;
1172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction;
1182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage;
1192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout;
1208ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaAction;
1218ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaData;
1228ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageMediaPage;
1236fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
12494e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete;
12594e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList;
126*e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderAction;
127*e172383bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapProviderPage;
128040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade;
12946b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload;
13046b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail;
1312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage;
1325bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction;
1335bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage;
1345bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction;
1355bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage;
1366fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction;
1376fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage;
138e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction;
139e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage;
140e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect;
1412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction;
1429f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings;
1436fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction;
1446fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
1459f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction;
1469f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
1479f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction;
1489f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage;
1499f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction;
1509f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage;
1519f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction;
1529f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage;
1539f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction;
1549f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage;
1559f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction;
1569f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage;
1579f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction;
1589f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage;
1599f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction;
1609f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage;
1619f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction;
1629f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage;
1639f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction;
1649f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage;
1659f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction;
1669f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage;
1679f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction;
1689f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage;
1699f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction;
1709f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage;
1712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage;
1722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction;
1732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage;
1742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction;
1752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage;
1762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact;
1772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges;
1782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange;
1792279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
1802279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree;
1812279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction;
1822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData;
1832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete;
1842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload;
1852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage;
1862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange;
1872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
1882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree;
1892279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation;
1902279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping;
1912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction;
1922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage;
1936fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction;
1946fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage;
1952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction;
1962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
197901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction;
198901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
1992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction;
2002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage;
2012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction;
2022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage;
2032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate;
2042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction;
2052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage;
2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction;
2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage;
2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt;
2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction;
2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage;
2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction;
2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage;
2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction;
2152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage;
2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction;
2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction;
2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage;
2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family;
2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual;
2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject;
2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note;
223a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place;
2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository;
2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source;
2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter;
2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree;
2282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage;
2292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact;
2302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme;
2312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction;
2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData;
2332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete;
2342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload;
2352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage;
236c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction;
237c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage;
238c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction;
239c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage;
2402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
2411635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
242ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
2436fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
2448e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
2458e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
2468e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit;
2478e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate;
2488e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit;
2498e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate;
2508e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit;
2518e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate;
2526fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
2536fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage;
2546fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction;
2556fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage;
25696716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
25796716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage;
2588ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaAction;
2598ce3bd73SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UploadMediaPage;
2608e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
2618e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
2628e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit;
2638e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate;
2648e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit;
2658e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate;
2668e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit;
2678e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate;
2682474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction;
2692474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage;
2702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail;
2712279b4f3SGreg Roach
2722279b4f3SGreg Roach/**
2732279b4f3SGreg Roach * Routing table for web requests
2742279b4f3SGreg Roach */
2752279b4f3SGreg Roachclass WebRoutes
2762279b4f3SGreg Roach{
2772279b4f3SGreg Roach    public function load(Map $router): void
2782279b4f3SGreg Roach    {
279901ade19SGreg Roach        $router->attach('', '', static function (Map $router) {
2802279b4f3SGreg Roach            // Admin routes.
2812279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
2822279b4f3SGreg Roach                $router->extras([
283901ade19SGreg Roach                    'middleware' => [
284901ade19SGreg Roach                        AuthAdministrator::class,
285901ade19SGreg Roach                    ],
2862279b4f3SGreg Roach                ]);
2872279b4f3SGreg Roach
288451d4d87SGreg Roach                $router->get(ControlPanel::class, '');
289451d4d87SGreg Roach                $router->get(BroadcastPage::class, '/broadcast');
290451d4d87SGreg Roach                $router->post(BroadcastAction::class, '/broadcast');
291451d4d87SGreg Roach                $router->get(CleanDataFolder::class, '/clean');
292451d4d87SGreg Roach                $router->post(DeletePath::class, '/delete-path');
293451d4d87SGreg Roach                $router->get(EmailPreferencesPage::class, '/email');
294451d4d87SGreg Roach                $router->post(EmailPreferencesAction::class, '/email');
295451d4d87SGreg Roach                $router->get(PhpInformation::class, '/information');
296451d4d87SGreg Roach                $router->get(SiteLogsPage::class, '/logs');
297451d4d87SGreg Roach                $router->post(SiteLogsAction::class, '/logs');
298451d4d87SGreg Roach                $router->get(SiteLogsData::class, '/logs-data');
299451d4d87SGreg Roach                $router->post(SiteLogsDelete::class, '/logs-delete');
300451d4d87SGreg Roach                $router->get(SiteLogsDownload::class, '/logs-download');
301451d4d87SGreg Roach                $router->post(Masquerade::class, '/masquerade/{user_id}');
3028ce3bd73SGreg Roach                $router->get(ManageMediaPage::class, '/media', ManageMediaPage::class);
3038ce3bd73SGreg Roach                $router->post(ManageMediaAction::class, '/media', ManageMediaAction::class);
3048ce3bd73SGreg Roach                $router->get(ManageMediaData::class, '/media-data', ManageMediaData::class);
3058ce3bd73SGreg Roach                $router->get(UploadMediaPage::class, '/media-upload', UploadMediaPage::class);
3068ce3bd73SGreg Roach                $router->post(UploadMediaAction::class, '/media-upload', UploadMediaAction::class);
30710a93a5fSGreg Roach                $router->get(AdminMediaFileDownload::class, '/media-file');
30810a93a5fSGreg Roach                $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail');
309451d4d87SGreg Roach                $router->get(CreateTreePage::class, '/trees/create');
310451d4d87SGreg Roach                $router->post(CreateTreeAction::class, '/trees/create');
311451d4d87SGreg Roach                $router->post(SelectDefaultTree::class, '/trees/default/{tree}');
312451d4d87SGreg Roach                $router->post(DeleteTreeAction::class, '/trees/delete/{tree}');
3132279b4f3SGreg Roach                $router->get('admin-fix-level-0-media', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0Media');
3142279b4f3SGreg Roach                $router->post('admin-fix-level-0-media-action', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0MediaAction');
3152279b4f3SGreg Roach                $router->get('admin-fix-level-0-media-data', '/fix-level-0-media-data', 'Admin\FixLevel0MediaController::fixLevel0MediaData');
3162279b4f3SGreg Roach                $router->get('admin-webtrees1-thumbs', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1Thumbnails');
3172279b4f3SGreg Roach                $router->post('admin-webtrees1-thumbs-action', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsAction');
3182279b4f3SGreg Roach                $router->get('admin-webtrees1-thumbs-data', '/webtrees1-thumbs-data', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsData');
319451d4d87SGreg Roach                $router->get(UsersCleanupPage::class, '/users-cleanup');
320451d4d87SGreg Roach                $router->post(UsersCleanupAction::class, '/users-cleanup');
321451d4d87SGreg Roach                $router->get(MapDataList::class, '/map-data');
3222279b4f3SGreg Roach                $router->get('map-data-edit', '/map-data-edit', 'Admin\LocationController::mapDataEdit');
3232279b4f3SGreg Roach                $router->post('map-data-update', '/map-data-edit', 'Admin\LocationController::mapDataSave');
324451d4d87SGreg Roach                $router->post(MapDataDelete::class, '/map-data-delete');
3252279b4f3SGreg Roach                $router->get('locations-export', '/locations-export', 'Admin\LocationController::exportLocations');
3262279b4f3SGreg Roach                $router->get('locations-import', '/locations-import', 'Admin\LocationController::importLocations');
3272279b4f3SGreg Roach                $router->post('locations-import-action', '/locations-import', 'Admin\LocationController::importLocationsAction');
328*e172383bSGreg Roach                $router->get(MapProviderPage::class, '/map-provider', MapProviderPage::class);
329*e172383bSGreg Roach                $router->post(MapProviderAction::class, '/map-provider', MapProviderAction::class);
3309f667ff2SGreg Roach                $router->post(ModuleDeleteSettings::class, '/module-delete-settings');
3319f667ff2SGreg Roach                $router->get(ModulesAllPage::class, '/modules');
3329f667ff2SGreg Roach                $router->post(ModulesAllAction::class, '/modules');
3339f667ff2SGreg Roach                $router->get(ModulesAnalyticsPage::class, '/analytics');
3349f667ff2SGreg Roach                $router->post(ModulesAnalyticsAction::class, '/analytics');
3359f667ff2SGreg Roach                $router->get(ModulesBlocksPage::class, '/blocks');
3369f667ff2SGreg Roach                $router->post(ModulesBlocksAction::class, '/blocks');
3379f667ff2SGreg Roach                $router->get(ModulesChartsPage::class, '/charts');
3389f667ff2SGreg Roach                $router->post(ModulesChartsAction::class, '/charts');
3399f667ff2SGreg Roach                $router->get(ModulesDataFixesPage::class, '/data-fixes');
3409f667ff2SGreg Roach                $router->post(ModulesDataFixesAction::class, '/data-fixes');
3419f667ff2SGreg Roach                $router->get(ModulesFootersPage::class, '/footers');
3429f667ff2SGreg Roach                $router->post(ModulesFootersAction::class, '/footers');
3439f667ff2SGreg Roach                $router->get(ModulesHistoricEventsPage::class, '/historic-events');
3449f667ff2SGreg Roach                $router->post(ModulesHistoricEventsAction::class, '/historic-events');
3459f667ff2SGreg Roach                $router->get(ModulesListsPage::class, '/lists');
3469f667ff2SGreg Roach                $router->post(ModulesListsAction::class, '/lists');
3479f667ff2SGreg Roach                $router->get(ModulesMenusPage::class, '/menus');
3489f667ff2SGreg Roach                $router->post(ModulesMenusAction::class, '/menus');
3499f667ff2SGreg Roach                $router->get(ModulesLanguagesPage::class, '/languages');
3509f667ff2SGreg Roach                $router->post(ModulesLanguagesAction::class, '/languages');
3519f667ff2SGreg Roach                $router->get(ModulesReportsPage::class, '/reports');
3529f667ff2SGreg Roach                $router->post(ModulesReportsAction::class, '/reports');
3539f667ff2SGreg Roach                $router->get(ModulesSidebarsPage::class, '/sidebars');
3549f667ff2SGreg Roach                $router->post(ModulesSidebarsAction::class, '/sidebars');
3559f667ff2SGreg Roach                $router->get(ModulesTabsPage::class, '/tabs');
3569f667ff2SGreg Roach                $router->post(ModulesTabsAction::class, '/tabs');
3579f667ff2SGreg Roach                $router->get(ModulesThemesPage::class, '/themes');
3589f667ff2SGreg Roach                $router->post(ModulesThemesAction::class, '/themes');
3592279b4f3SGreg Roach                $router->get('upgrade', '/upgrade', 'Admin\UpgradeController::wizard');
360c06384d0SGreg Roach                $router->post('upgrade-confirm', '/upgrade-confirm', 'Admin\UpgradeController::confirm');
3612279b4f3SGreg Roach                $router->post('upgrade-action', '/upgrade', 'Admin\UpgradeController::step');
3622279b4f3SGreg Roach                $router->get('admin-users', '/admin-users', 'Admin\UsersController::index');
3632279b4f3SGreg Roach                $router->get('admin-users-data', '/admin-users-data', 'Admin\UsersController::data');
3642279b4f3SGreg Roach                $router->get('admin-users-create', '/admin-users-create', 'Admin\UsersController::create');
3652279b4f3SGreg Roach                $router->post('admin-users-create-action', '/admin-users-create', 'Admin\UsersController::save');
3662279b4f3SGreg Roach                $router->get('admin-users-edit', '/admin-users-edit', 'Admin\UsersController::edit');
3672279b4f3SGreg Roach                $router->post('admin-users-update', '/admin-users-edit', 'Admin\UsersController::update');
368451d4d87SGreg Roach                $router->get(SitePreferencesPage::class, '/site-preferences');
369451d4d87SGreg Roach                $router->post(SitePreferencesAction::class, '/site-preferences');
370451d4d87SGreg Roach                $router->get(SiteRegistrationPage::class, '/site-registration');
371451d4d87SGreg Roach                $router->post(SiteRegistrationAction::class, '/site-registration');
372451d4d87SGreg Roach                $router->get(TreePageDefaultEdit::class, '/trees/default-blocks');
373451d4d87SGreg Roach                $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks');
3746fd01894SGreg Roach                $router->get(MergeTreesPage::class, '/trees/merge');
3756fd01894SGreg Roach                $router->post(MergeTreesAction::class, '/trees/merge');
3766fd01894SGreg Roach                $router->post(SynchronizeTrees::class, '/trees/sync');
3776fd01894SGreg Roach                $router->post(DeleteUser::class, '/users/delete/{user_id}');
378451d4d87SGreg Roach                $router->get(UserPageDefaultEdit::class, '/user-page-default-edit');
379451d4d87SGreg Roach                $router->post(UserPageDefaultUpdate::class, '/user-page-default-update');
380cccedbe5SGreg Roach
381cccedbe5SGreg Roach                // @deprecated since 2.0.8 - will be removed in 2.1.0
382cccedbe5SGreg Roach                $router->get('modules', '/modules', ModulesAllPage::class);
3832279b4f3SGreg Roach            });
3842279b4f3SGreg Roach
38557796b09SGreg Roach            // Manager routes (multiple trees).
3862279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
3872279b4f3SGreg Roach                $router->extras([
388901ade19SGreg Roach                    'middleware' => [
389901ade19SGreg Roach                        AuthManager::class,
390901ade19SGreg Roach                    ],
3912279b4f3SGreg Roach                ]);
3922279b4f3SGreg Roach
3936fd01894SGreg Roach                $router->get(ManageTrees::class, '/trees/manage/{tree}');
3942279b4f3SGreg Roach            });
3952279b4f3SGreg Roach
3962279b4f3SGreg Roach            // Manager routes.
3972279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
3982279b4f3SGreg Roach                $router->extras([
399901ade19SGreg Roach                    'middleware' => [
400901ade19SGreg Roach                        AuthManager::class,
401901ade19SGreg Roach                    ],
4022279b4f3SGreg Roach                ]);
4032279b4f3SGreg Roach
404451d4d87SGreg Roach                $router->get(PendingChangesLogPage::class, '/changes-log');
405451d4d87SGreg Roach                $router->post(PendingChangesLogAction::class, '/changes-log');
406451d4d87SGreg Roach                $router->get(PendingChangesLogData::class, '/changes-data');
407451d4d87SGreg Roach                $router->post(PendingChangesLogDelete::class, '/changes-delete');
408451d4d87SGreg Roach                $router->get(PendingChangesLogDownload::class, '/changes-download');
4096fd01894SGreg Roach                $router->get(CheckTree::class, '/check');
410451d4d87SGreg Roach                $router->get(DataFixChoose::class, '/data-fix');
411451d4d87SGreg Roach                $router->post(DataFixSelect::class, '/data-fix');
412451d4d87SGreg Roach                $router->get(DataFixPage::class, '/data-fix/{data_fix}');
413451d4d87SGreg Roach                $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update');
414451d4d87SGreg Roach                $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all');
415451d4d87SGreg Roach                $router->get(DataFixData::class, '/data-fix/{data_fix}/data');
416451d4d87SGreg Roach                $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview');
4176fd01894SGreg Roach                $router->get(FindDuplicateRecords::class, '/duplicates');
418451d4d87SGreg Roach                $router->get(ExportGedcomPage::class, '/export');
419451d4d87SGreg Roach                $router->post(ExportGedcomClient::class, '/export-client');
420451d4d87SGreg Roach                $router->post(ExportGedcomServer::class, '/export-server');
4216fd01894SGreg Roach                $router->get(ImportGedcomPage::class, '/import');
4226fd01894SGreg Roach                $router->post(ImportGedcomAction::class, '/import');
423451d4d87SGreg Roach                $router->get(MergeRecordsPage::class, '/merge-step1');
424451d4d87SGreg Roach                $router->post(MergeRecordsAction::class, '/merge-step1');
425451d4d87SGreg Roach                $router->get(MergeFactsPage::class, '/merge-step2');
426451d4d87SGreg Roach                $router->post(MergeFactsAction::class, '/merge-step2');
4276fd01894SGreg Roach                $router->get(TreePreferencesPage::class, '/preferences');
4286fd01894SGreg Roach                $router->post(TreePreferencesAction::class, '/preferences');
4296fd01894SGreg Roach                $router->get(RenumberTreePage::class, '/renumber');
4306fd01894SGreg Roach                $router->post(RenumberTreeAction::class, '/renumber');
431451d4d87SGreg Roach                $router->get(TreePageEdit::class, '/tree-page-edit');
4326fd01894SGreg Roach                $router->post(GedcomLoad::class, '/load');
433451d4d87SGreg Roach                $router->post(TreePageUpdate::class, '/tree-page-update');
434451d4d87SGreg Roach                $router->get(TreePageBlockEdit::class, '/tree-page-block-edit');
435451d4d87SGreg Roach                $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit');
4366fd01894SGreg Roach                $router->get(TreePrivacyPage::class, '/privacy');
4376fd01894SGreg Roach                $router->post(TreePrivacyAction::class, '/privacy');
438451d4d87SGreg Roach                $router->get(UnconnectedPage::class, '/unconnected');
439451d4d87SGreg Roach                $router->post(UnconnectedAction::class, '/unconnected');
4402279b4f3SGreg Roach            });
4412279b4f3SGreg Roach
4422279b4f3SGreg Roach            // Moderator routes.
4432279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4442279b4f3SGreg Roach                $router->extras([
445901ade19SGreg Roach                    'middleware' => [
446901ade19SGreg Roach                        AuthModerator::class,
447901ade19SGreg Roach                    ],
4482279b4f3SGreg Roach                ]);
449451d4d87SGreg Roach                $router->post(PendingChangesAcceptTree::class, '/accept');
450451d4d87SGreg Roach                $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}');
451451d4d87SGreg Roach                $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}');
452451d4d87SGreg Roach                $router->get(PendingChanges::class, '/pending');
453451d4d87SGreg Roach                $router->post(PendingChangesRejectTree::class, '/reject');
454451d4d87SGreg Roach                $router->post(PendingChangesRejectRecord::class, '/reject/{xref}');
455451d4d87SGreg Roach                $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}');
4562279b4f3SGreg Roach            });
4572279b4f3SGreg Roach
4582279b4f3SGreg Roach            // Editor routes.
4592279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4602279b4f3SGreg Roach                $router->extras([
461901ade19SGreg Roach                    'middleware' => [
462901ade19SGreg Roach                        AuthEditor::class,
463901ade19SGreg Roach                    ],
4642279b4f3SGreg Roach                ]);
4652279b4f3SGreg Roach
46663763244SGreg Roach                $router->get(AutoCompleteCitation::class, '/autocomplete/citation/{query}');
46763763244SGreg Roach                $router->get(AutoCompleteFolder::class, '/autocomplete/folder/{query}');
46863763244SGreg Roach                $router->get(AutoCompletePlace::class, '/autocomplete/place/{query}');
46963763244SGreg Roach                $router->get(AutoCompleteSurname::class, '/autocomplete/surname/{query}');
470451d4d87SGreg Roach                $router->get(AddChildToFamilyPage::class, '/add-child-to-family');
471451d4d87SGreg Roach                $router->post(AddChildToFamilyAction::class, '/add-child-to-family');
472451d4d87SGreg Roach                $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}');
473451d4d87SGreg Roach                $router->post(SelectNewFact::class, '/add-fact/{xref}');
4742279b4f3SGreg Roach                $router->get('add-media-file', '/add-media-file', 'EditMediaController::addMediaFile');
4752279b4f3SGreg Roach                $router->post('add-media-file-update', '/add-media-file', 'EditMediaController::addMediaFileAction');
476451d4d87SGreg Roach                $router->get(AddName::class, '/add-name');
477451d4d87SGreg Roach                $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family');
478451d4d87SGreg Roach                $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family');
479451d4d87SGreg Roach                $router->get(ChangeFamilyMembersPage::class, '/change-family-members');
480451d4d87SGreg Roach                $router->post(ChangeFamilyMembersAction::class, '/change-family-members');
481451d4d87SGreg Roach                $router->get(CreateMediaObjectModal::class, '/create-media-object');
482451d4d87SGreg Roach                $router->post(CreateMediaObjectAction::class, '/create-media-object');
4832279b4f3SGreg Roach                $router->post('create-media-from-file', '/create-media-from-file', 'EditMediaController::createMediaObjectFromFileAction');
484451d4d87SGreg Roach                $router->post(CopyFact::class, '/copy/{xref}/{fact_id}');
485451d4d87SGreg Roach                $router->get(CreateNoteModal::class, '/create-note-object');
486451d4d87SGreg Roach                $router->post(CreateNoteAction::class, '/create-note-object');
487451d4d87SGreg Roach                $router->get(CreateRepositoryModal::class, '/create-repository');
488451d4d87SGreg Roach                $router->post(CreateRepositoryAction::class, '/create-repository');
489451d4d87SGreg Roach                $router->get(CreateSourceModal::class, '/create-source');
490451d4d87SGreg Roach                $router->post(CreateSourceAction::class, '/create-source');
491451d4d87SGreg Roach                $router->get(CreateSubmitterModal::class, '/create-submitter');
492451d4d87SGreg Roach                $router->post(CreateSubmitterAction::class, '/create-submitter');
493451d4d87SGreg Roach                $router->post(DeleteRecord::class, '/delete/{xref}');
494451d4d87SGreg Roach                $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}');
495451d4d87SGreg Roach                $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}');
496451d4d87SGreg Roach                $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}');
4972279b4f3SGreg Roach                $router->get('edit-media-file', '/edit-media-file', 'EditMediaController::editMediaFile');
4982279b4f3SGreg Roach                $router->post('edit-media-file-update', '/edit-media-file', 'EditMediaController::editMediaFileAction');
499316db80eSGreg Roach                $router->get('edit-note-object', '/edit-note-object/{xref}', 'EditNoteController::editNoteObject');
500316db80eSGreg Roach                $router->post('edit-note-object-action', '/edit-note-object/{xref}', 'EditNoteController::updateNoteObject');
501451d4d87SGreg Roach                $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}');
502451d4d87SGreg Roach                $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}');
503451d4d87SGreg Roach                $router->get(EditRawRecordPage::class, '/edit-raw/{xref}');
504451d4d87SGreg Roach                $router->post(EditRawRecordAction::class, '/edit-raw/{xref}');
5052279b4f3SGreg Roach                $router->get('link-media-to-individual', '/link-media-to-individual', 'EditMediaController::linkMediaToIndividual');
5062279b4f3SGreg Roach                $router->get('link-media-to-family', '/link-media-to-family', 'EditMediaController::linkMediaToFamily');
5072279b4f3SGreg Roach                $router->get('link-media-to-source', '/link-media-to-source', 'EditMediaController::linkMediaToSource');
508814c6707SGreg Roach                $router->post('link-media-to-record', '/link-media-to-record/{xref}', 'EditMediaController::linkMediaToRecordAction');
509451d4d87SGreg Roach                $router->post(PasteFact::class, '/paste-fact/{xref}');
510451d4d87SGreg Roach                $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}');
511451d4d87SGreg Roach                $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}');
512451d4d87SGreg Roach                $router->get(ReorderMediaPage::class, '/reorder-media/{xref}');
513451d4d87SGreg Roach                $router->post(ReorderMediaAction::class, '/reorder-media/{xref}');
514451d4d87SGreg Roach                $router->get(ReorderNamesPage::class, '/reorder-names/{xref}');
515451d4d87SGreg Roach                $router->post(ReorderNamesAction::class, '/reorder-names/{xref}');
516451d4d87SGreg Roach                $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}');
517451d4d87SGreg Roach                $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}');
518451d4d87SGreg Roach                $router->get(SearchReplacePage::class, '/search-replace');
519451d4d87SGreg Roach                $router->post(SearchReplaceAction::class, '/search-replace');
520451d4d87SGreg Roach                $router->get(AddChildToIndividualPage::class, '/add-child-to-individual');
521451d4d87SGreg Roach                $router->post(AddChildToIndividualAction::class, '/add-child-to-individual');
522451d4d87SGreg Roach                $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual');
523451d4d87SGreg Roach                $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual');
524451d4d87SGreg Roach                $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual');
525451d4d87SGreg Roach                $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual');
526451d4d87SGreg Roach                $router->get(AddUnlinkedPage::class, '/add-unlinked-individual');
527451d4d87SGreg Roach                $router->post(AddUnlinkedAction::class, '/add-unlinked-individual');
528451d4d87SGreg Roach                $router->get(LinkChildToFamilyPage::class, '/link-child-to-family');
529451d4d87SGreg Roach                $router->post(LinkChildToFamilyAction::class, '/link-child-to-family');
530451d4d87SGreg Roach                $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual');
531451d4d87SGreg Roach                $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual');
532451d4d87SGreg Roach                $router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
5332279b4f3SGreg Roach            });
5342279b4f3SGreg Roach
5358673e6b9SGreg Roach            // User routes with a tree.
5362279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5372279b4f3SGreg Roach                $router->extras([
538901ade19SGreg Roach                    'middleware' => [
5398673e6b9SGreg Roach                        AuthLoggedIn::class,
540901ade19SGreg Roach                    ],
5412279b4f3SGreg Roach                ]);
5422279b4f3SGreg Roach
543451d4d87SGreg Roach                $router->post(MessageSelect::class, '/message-select');
544451d4d87SGreg Roach                $router->get(MessagePage::class, '/message-compose');
545451d4d87SGreg Roach                $router->post(MessageAction::class, '/message-send');
546451d4d87SGreg Roach                $router->get(UserPage::class, '/my-page');
547451d4d87SGreg Roach                $router->get(UserPageBlock::class, '/my-page-block');
548451d4d87SGreg Roach                $router->get(UserPageEdit::class, '/my-page-edit');
549451d4d87SGreg Roach                $router->post(UserPageUpdate::class, '/my-page-edit');
550451d4d87SGreg Roach                $router->get(UserPageBlockEdit::class, '/my-page-block-edit');
551451d4d87SGreg Roach                $router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
5522279b4f3SGreg Roach            });
5532279b4f3SGreg Roach
5548673e6b9SGreg Roach            // User routes without a tree.
5552279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
5562279b4f3SGreg Roach                $router->extras([
557901ade19SGreg Roach                    'middleware' => [
558901ade19SGreg Roach                        AuthLoggedIn::class,
559901ade19SGreg Roach                    ],
5602279b4f3SGreg Roach                ]);
5612279b4f3SGreg Roach
562451d4d87SGreg Roach                $router->get(AccountEdit::class, '/my-account{/tree}');
563451d4d87SGreg Roach                $router->post(AccountUpdate::class, '/my-account{/tree}');
564451d4d87SGreg Roach                $router->post(AccountDelete::class, '/my-account-delete');
5652279b4f3SGreg Roach            });
5662279b4f3SGreg Roach
567f917a287SGreg Roach            // Visitor routes - with an optional tree (for sites with no public trees).
5682279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
569451d4d87SGreg Roach                $router->get(LoginPage::class, '/login{/tree}');
570451d4d87SGreg Roach                $router->post(LoginAction::class, '/login{/tree}');
571451d4d87SGreg Roach                $router->get(PasswordRequestPage::class, '/password-request{/tree}');
572451d4d87SGreg Roach                $router->post(PasswordRequestAction::class, '/password-request{/tree}');
573451d4d87SGreg Roach                $router->get(RegisterPage::class, '/register{/tree}');
574451d4d87SGreg Roach                $router->post(RegisterAction::class, '/register{/tree}');
575451d4d87SGreg Roach                $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}');
576451d4d87SGreg Roach                $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}');
577451d4d87SGreg Roach                $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}');
5782279b4f3SGreg Roach            });
5792279b4f3SGreg Roach
580b45ccc4fSGreg Roach            // Visitor routes with a tree.
5812279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
582451d4d87SGreg Roach                $router->get(TreePage::class, '');
583451d4d87SGreg Roach                $router->get(CalendarPage::class, '/calendar/{view}');
584451d4d87SGreg Roach                $router->post(CalendarAction::class, '/calendar/{view}');
585451d4d87SGreg Roach                $router->get(CalendarEvents::class, '/calendar-events/{view}');
586451d4d87SGreg Roach                $router->get(ContactPage::class, '/contact');
587451d4d87SGreg Roach                $router->post(ContactAction::class, '/contact');
588451d4d87SGreg Roach                $router->get(FamilyPage::class, '/family/{xref}{/slug}');
589451d4d87SGreg Roach                $router->get(HeaderPage::class, '/header/{xref}{/slug}');
590451d4d87SGreg Roach                $router->get(IndividualPage::class, '/individual/{xref}{/slug}');
591451d4d87SGreg Roach                $router->get(MediaFileThumbnail::class, '/media-thumbnail');
592451d4d87SGreg Roach                $router->get(MediaFileDownload::class, '/media-download');
593451d4d87SGreg Roach                $router->get(MediaPage::class, '/media/{xref}{/slug}');
594451d4d87SGreg Roach                $router->get(NotePage::class, '/note/{xref}{/slug}');
595451d4d87SGreg Roach                $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}');
596451d4d87SGreg Roach                $router->get(RepositoryPage::class, '/repository/{xref}{/slug}');
597451d4d87SGreg Roach                $router->get(ReportListPage::class, '/report');
598451d4d87SGreg Roach                $router->post(ReportListAction::class, '/report');
599451d4d87SGreg Roach                $router->get(ReportSetupPage::class, '/report/{report}');
600451d4d87SGreg Roach                $router->post(ReportSetupAction::class, '/report/{report}');
601451d4d87SGreg Roach                $router->get(ReportGenerate::class, '/report-run/{report}');
602451d4d87SGreg Roach                $router->get(SearchAdvancedPage::class, '/search-advanced');
603451d4d87SGreg Roach                $router->post(SearchAdvancedAction::class, '/search-advanced');
604451d4d87SGreg Roach                $router->get(SearchGeneralPage::class, '/search-general');
605451d4d87SGreg Roach                $router->post(SearchGeneralAction::class, '/search-general');
606451d4d87SGreg Roach                $router->get(SearchPhoneticPage::class, '/search-phonetic');
607451d4d87SGreg Roach                $router->post(SearchPhoneticAction::class, '/search-phonetic');
608451d4d87SGreg Roach                $router->post(SearchQuickAction::class, '/search-quick');
609451d4d87SGreg Roach                $router->post(Select2Family::class, '/select2-family');
610451d4d87SGreg Roach                $router->post(Select2Individual::class, '/select2-individual');
611451d4d87SGreg Roach                $router->post(Select2MediaObject::class, '/select2-media');
612451d4d87SGreg Roach                $router->post(Select2Note::class, '/select2-note');
613451d4d87SGreg Roach                $router->post(Select2Place::class, '/select2-place');
614451d4d87SGreg Roach                $router->post(Select2Source::class, '/select2-source');
615451d4d87SGreg Roach                $router->post(Select2Submitter::class, '/select2-submitter');
616451d4d87SGreg Roach                $router->post(Select2Repository::class, '/select2-repository');
617451d4d87SGreg Roach                $router->get(SourcePage::class, '/source/{xref}{/slug}');
618451d4d87SGreg Roach                $router->get(SubmissionPage::class, '/submission/{xref}{/slug}');
619451d4d87SGreg Roach                $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}');
620451d4d87SGreg Roach                $router->get(TreePageBlock::class, '/tree-page-block');
621451d4d87SGreg Roach                $router->get('example', '/…')
622451d4d87SGreg Roach                    ->isRoutable(false);
6232279b4f3SGreg Roach            });
6242279b4f3SGreg Roach
625b59ec43dSGreg Roach            // Match module routes, with and without a tree.
626b59ec43dSGreg Roach            $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class)
6272279b4f3SGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
628b59ec43dSGreg Roach            $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class)
629b59ec43dSGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
630b59ec43dSGreg Roach            // Generate module routes only. The router cannot distinguish a private tree from no tree.
631451d4d87SGreg Roach            $router->get('module', '/module/{module}/{action}{/tree}')
632451d4d87SGreg Roach                ->isRoutable(false);
6332279b4f3SGreg Roach
634451d4d87SGreg Roach            $router->get(HelpText::class, '/help/{topic}');
635451d4d87SGreg Roach            $router->post(SelectLanguage::class, '/language/{language}');
636451d4d87SGreg Roach            $router->post(Logout::class, '/logout');
63764c83a78SGreg Roach            $router->get(Ping::class, '/ping', Ping::class)
63864c83a78SGreg Roach                ->allows(RequestMethodInterface::METHOD_HEAD);
639451d4d87SGreg Roach            $router->get(RobotsTxt::class, '/robots.txt');
640451d4d87SGreg Roach            $router->post(SelectTheme::class, '/theme/{theme}');
641451d4d87SGreg Roach            $router->get(HomePage::class, '/');
6422279b4f3SGreg Roach
64346431a62SGreg Roach            // Some URL rewrite configurations will pass everything not in /public to index.php
644451d4d87SGreg Roach            $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png');
645451d4d87SGreg Roach            $router->get(FaviconIco::class, '/favicon.ico');
646901ade19SGreg Roach        });
6472279b4f3SGreg Roach    }
6482279b4f3SGreg Roach}
649