xref: /webtrees/app/Http/Routes/WebRoutes.php (revision 6fd01894a78d321fac365dd0291a2fc52129fa03)
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\AuthMember;
292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\Middleware\AuthModerator;
302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountDelete;
312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountEdit;
322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountUpdate;
337c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyAction;
347c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToFamilyPage;
357c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualAction;
367c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualPage;
377c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddName;
382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
397c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualAction;
407c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualPage;
417c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyAction;
427c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToFamilyPage;
437c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualAction;
447c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualPage;
457c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedAction;
467c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddUnlinkedPage;
476577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileDownload;
486577bfc3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AdminMediaFileThumbnail;
4946431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AppleTouchIconPng;
50e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction;
51e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage;
52b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarAction;
53b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarEvents;
54b00cb080SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CalendarPage;
5543322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersAction;
5643322877SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ChangeFamilyMembersPage;
57*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CheckTree;
582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder;
59e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction;
60e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage;
612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
622279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact;
632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction;
642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal;
652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction;
662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal;
672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction;
682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal;
692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction;
702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal;
712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction;
722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal;
732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction;
742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage;
75ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixChoose;
7655749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixData;
7755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPage;
78ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixPreview;
79ce42304aSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixSelect;
8055749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdate;
8155749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DataFixUpdateAll;
822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact;
832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath;
842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord;
852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction;
862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser;
8755749c76SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactAction;
88a53fee79SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFactPage;
897c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditName;
902279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction;
912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage;
922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction;
932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage;
94901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction;
95901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage;
966d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient;
976d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage;
986d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer;
992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage;
10046431a62SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FaviconIco;
101*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FindDuplicateRecords;
102*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomLoad;
1032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage;
1041635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HeaderPage;
1052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText;
1062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
107*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomAction;
108*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ImportGedcomPage;
1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage;
1107c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyAction;
1117c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage;
1127c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualAction;
1137c7d1e03SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage;
1142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction;
1152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage;
1162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout;
117*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ManageTrees;
11894e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataDelete;
11994e35917SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MapDataList;
120040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade;
12146b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileDownload;
12246b03695SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaFileThumbnail;
1232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage;
1245bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction;
1255bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage;
1265bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction;
1275bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage;
128*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesAction;
129*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeTreesPage;
130e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction;
131e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage;
132e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect;
1332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction;
1349f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleDeleteSettings;
135*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllAction;
136*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
1379f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsAction;
1389f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesAnalyticsPage;
1399f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksAction;
1409f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesBlocksPage;
1419f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsAction;
1429f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesChartsPage;
1439f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesAction;
1449f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesDataFixesPage;
1459f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersAction;
1469f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesFootersPage;
1479f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsAction;
1489f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesHistoricEventsPage;
1499f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesAction;
1509f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesLanguagesPage;
1519f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsAction;
1529f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesListsPage;
1539f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusAction;
1549f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesMenusPage;
1559f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsAction;
1569f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesReportsPage;
1579f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsAction;
1589f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesSidebarsPage;
1599f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsAction;
1609f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesTabsPage;
1619f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesAction;
1629f667ff2SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModulesThemesPage;
1632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage;
1642279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction;
1652279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage;
1662279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction;
1672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage;
1682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact;
1692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges;
1702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange;
1712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord;
1722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree;
1732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction;
1742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData;
1752279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete;
1762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload;
1772279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage;
1782279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange;
1792279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord;
1802279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree;
1812279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation;
1822279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping;
1832279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction;
1842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage;
185*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreeAction;
186*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RenumberTreePage;
1872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction;
1882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
189901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesAction;
190901ade19SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
1912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction;
1922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage;
1932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction;
1942279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage;
1952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate;
1962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction;
1972279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage;
1982279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction;
1992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage;
2002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage;
2012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt;
2022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction;
2032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage;
2042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction;
2052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage;
2062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction;
2072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage;
2082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction;
2092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction;
2102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage;
2112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family;
2122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual;
2132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject;
2142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note;
215a60f9d1cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Place;
2162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository;
2172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source;
2182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter;
2192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree;
2202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage;
2212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact;
2222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme;
2232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction;
2242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData;
2252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete;
2262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload;
2272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage;
228c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesAction;
229c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SitePreferencesPage;
230c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction;
231c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationPage;
2322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage;
2331635452cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmissionPage;
234ffc0a61fSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SubmitterPage;
235*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SynchronizeTrees;
2368e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
2378e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlock;
2388e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockEdit;
2398e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageBlockUpdate;
2408e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultEdit;
2418e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageDefaultUpdate;
2428e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageEdit;
2438e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePageUpdate;
244*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesAction;
245*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePreferencesPage;
246*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyAction;
247*6fd01894SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\TreePrivacyPage;
24896716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction;
24996716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage;
2508e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPage;
2518e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlock;
2528e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockEdit;
2538e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageBlockUpdate;
2548e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultEdit;
2558e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageDefaultUpdate;
2568e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageEdit;
2578e0e1b25SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UserPageUpdate;
2582474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction;
2592474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage;
2602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail;
2612279b4f3SGreg Roach
2622279b4f3SGreg Roach/**
2632279b4f3SGreg Roach * Routing table for web requests
2642279b4f3SGreg Roach */
2652279b4f3SGreg Roachclass WebRoutes
2662279b4f3SGreg Roach{
2672279b4f3SGreg Roach    public function load(Map $router): void
2682279b4f3SGreg Roach    {
269901ade19SGreg Roach        $router->attach('', '', static function (Map $router) {
2702279b4f3SGreg Roach            // Admin routes.
2712279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
2722279b4f3SGreg Roach                $router->extras([
273901ade19SGreg Roach                    'middleware' => [
274901ade19SGreg Roach                        AuthAdministrator::class,
275901ade19SGreg Roach                    ],
2762279b4f3SGreg Roach                ]);
2772279b4f3SGreg Roach
278451d4d87SGreg Roach                $router->get(ControlPanel::class, '');
279451d4d87SGreg Roach                $router->get(BroadcastPage::class, '/broadcast');
280451d4d87SGreg Roach                $router->post(BroadcastAction::class, '/broadcast');
281451d4d87SGreg Roach                $router->get(CleanDataFolder::class, '/clean');
282451d4d87SGreg Roach                $router->post(DeletePath::class, '/delete-path');
283451d4d87SGreg Roach                $router->get(EmailPreferencesPage::class, '/email');
284451d4d87SGreg Roach                $router->post(EmailPreferencesAction::class, '/email');
285451d4d87SGreg Roach                $router->get(PhpInformation::class, '/information');
286451d4d87SGreg Roach                $router->get(SiteLogsPage::class, '/logs');
287451d4d87SGreg Roach                $router->post(SiteLogsAction::class, '/logs');
288451d4d87SGreg Roach                $router->get(SiteLogsData::class, '/logs-data');
289451d4d87SGreg Roach                $router->post(SiteLogsDelete::class, '/logs-delete');
290451d4d87SGreg Roach                $router->get(SiteLogsDownload::class, '/logs-download');
291451d4d87SGreg Roach                $router->post(Masquerade::class, '/masquerade/{user_id}');
2923d180ba8SGreg Roach                $router->get('admin-media', '/media', 'Admin\MediaController::index');
2933d180ba8SGreg Roach                $router->post('admin-media-select', '/media', 'Admin\MediaController::select');
2943d180ba8SGreg Roach                $router->get('admin-media-data', '/media-data', 'Admin\MediaController::data');
2953d180ba8SGreg Roach                $router->get('admin-media-upload', '/media-upload', 'Admin\MediaController::upload');
2963d180ba8SGreg Roach                $router->post('admin-media-upload-action', '/media-upload', 'Admin\MediaController::uploadAction');
2976577bfc3SGreg Roach                $router->get(AdminMediaFileDownload::class, '/media-file/{path}');
2986577bfc3SGreg Roach                $router->get(AdminMediaFileThumbnail::class, '/media-thumbnail/{path}');
299451d4d87SGreg Roach                $router->get(CreateTreePage::class, '/trees/create');
300451d4d87SGreg Roach                $router->post(CreateTreeAction::class, '/trees/create');
301451d4d87SGreg Roach                $router->post(SelectDefaultTree::class, '/trees/default/{tree}');
302451d4d87SGreg Roach                $router->post(DeleteTreeAction::class, '/trees/delete/{tree}');
3032279b4f3SGreg Roach                $router->get('admin-fix-level-0-media', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0Media');
3042279b4f3SGreg Roach                $router->post('admin-fix-level-0-media-action', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0MediaAction');
3052279b4f3SGreg Roach                $router->get('admin-fix-level-0-media-data', '/fix-level-0-media-data', 'Admin\FixLevel0MediaController::fixLevel0MediaData');
3062279b4f3SGreg Roach                $router->get('admin-webtrees1-thumbs', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1Thumbnails');
3072279b4f3SGreg Roach                $router->post('admin-webtrees1-thumbs-action', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsAction');
3082279b4f3SGreg Roach                $router->get('admin-webtrees1-thumbs-data', '/webtrees1-thumbs-data', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsData');
309451d4d87SGreg Roach                $router->get(UsersCleanupPage::class, '/users-cleanup');
310451d4d87SGreg Roach                $router->post(UsersCleanupAction::class, '/users-cleanup');
311451d4d87SGreg Roach                $router->get(MapDataList::class, '/map-data');
3122279b4f3SGreg Roach                $router->get('map-data-edit', '/map-data-edit', 'Admin\LocationController::mapDataEdit');
3132279b4f3SGreg Roach                $router->post('map-data-update', '/map-data-edit', 'Admin\LocationController::mapDataSave');
314451d4d87SGreg Roach                $router->post(MapDataDelete::class, '/map-data-delete');
3152279b4f3SGreg Roach                $router->get('locations-export', '/locations-export', 'Admin\LocationController::exportLocations');
3162279b4f3SGreg Roach                $router->get('locations-import', '/locations-import', 'Admin\LocationController::importLocations');
3172279b4f3SGreg Roach                $router->post('locations-import-action', '/locations-import', 'Admin\LocationController::importLocationsAction');
3182279b4f3SGreg Roach                $router->get('map-provider', '/map-provider', 'Admin\MapProviderController::mapProviderEdit');
3192279b4f3SGreg Roach                $router->post('map-provider-action', '/map-provider', 'Admin\MapProviderController::mapProviderSave');
3209f667ff2SGreg Roach                $router->post(ModuleDeleteSettings::class, '/module-delete-settings');
3219f667ff2SGreg Roach                $router->get(ModulesAllPage::class, '/modules');
3229f667ff2SGreg Roach                $router->post(ModulesAllAction::class, '/modules');
3239f667ff2SGreg Roach                $router->get(ModulesAnalyticsPage::class, '/analytics');
3249f667ff2SGreg Roach                $router->post(ModulesAnalyticsAction::class, '/analytics');
3259f667ff2SGreg Roach                $router->get(ModulesBlocksPage::class, '/blocks');
3269f667ff2SGreg Roach                $router->post(ModulesBlocksAction::class, '/blocks');
3279f667ff2SGreg Roach                $router->get(ModulesChartsPage::class, '/charts');
3289f667ff2SGreg Roach                $router->post(ModulesChartsAction::class, '/charts');
3299f667ff2SGreg Roach                $router->get(ModulesDataFixesPage::class, '/data-fixes');
3309f667ff2SGreg Roach                $router->post(ModulesDataFixesAction::class, '/data-fixes');
3319f667ff2SGreg Roach                $router->get(ModulesFootersPage::class, '/footers');
3329f667ff2SGreg Roach                $router->post(ModulesFootersAction::class, '/footers');
3339f667ff2SGreg Roach                $router->get(ModulesHistoricEventsPage::class, '/historic-events');
3349f667ff2SGreg Roach                $router->post(ModulesHistoricEventsAction::class, '/historic-events');
3359f667ff2SGreg Roach                $router->get(ModulesListsPage::class, '/lists');
3369f667ff2SGreg Roach                $router->post(ModulesListsAction::class, '/lists');
3379f667ff2SGreg Roach                $router->get(ModulesMenusPage::class, '/menus');
3389f667ff2SGreg Roach                $router->post(ModulesMenusAction::class, '/menus');
3399f667ff2SGreg Roach                $router->get(ModulesLanguagesPage::class, '/languages');
3409f667ff2SGreg Roach                $router->post(ModulesLanguagesAction::class, '/languages');
3419f667ff2SGreg Roach                $router->get(ModulesReportsPage::class, '/reports');
3429f667ff2SGreg Roach                $router->post(ModulesReportsAction::class, '/reports');
3439f667ff2SGreg Roach                $router->get(ModulesSidebarsPage::class, '/sidebars');
3449f667ff2SGreg Roach                $router->post(ModulesSidebarsAction::class, '/sidebars');
3459f667ff2SGreg Roach                $router->get(ModulesTabsPage::class, '/tabs');
3469f667ff2SGreg Roach                $router->post(ModulesTabsAction::class, '/tabs');
3479f667ff2SGreg Roach                $router->get(ModulesThemesPage::class, '/themes');
3489f667ff2SGreg Roach                $router->post(ModulesThemesAction::class, '/themes');
3492279b4f3SGreg Roach                $router->get('upgrade', '/upgrade', 'Admin\UpgradeController::wizard');
350c06384d0SGreg Roach                $router->post('upgrade-confirm', '/upgrade-confirm', 'Admin\UpgradeController::confirm');
3512279b4f3SGreg Roach                $router->post('upgrade-action', '/upgrade', 'Admin\UpgradeController::step');
3522279b4f3SGreg Roach                $router->get('admin-users', '/admin-users', 'Admin\UsersController::index');
3532279b4f3SGreg Roach                $router->get('admin-users-data', '/admin-users-data', 'Admin\UsersController::data');
3542279b4f3SGreg Roach                $router->get('admin-users-create', '/admin-users-create', 'Admin\UsersController::create');
3552279b4f3SGreg Roach                $router->post('admin-users-create-action', '/admin-users-create', 'Admin\UsersController::save');
3562279b4f3SGreg Roach                $router->get('admin-users-edit', '/admin-users-edit', 'Admin\UsersController::edit');
3572279b4f3SGreg Roach                $router->post('admin-users-update', '/admin-users-edit', 'Admin\UsersController::update');
358451d4d87SGreg Roach                $router->get(SitePreferencesPage::class, '/site-preferences');
359451d4d87SGreg Roach                $router->post(SitePreferencesAction::class, '/site-preferences');
360451d4d87SGreg Roach                $router->get(SiteRegistrationPage::class, '/site-registration');
361451d4d87SGreg Roach                $router->post(SiteRegistrationAction::class, '/site-registration');
362451d4d87SGreg Roach                $router->get(TreePageDefaultEdit::class, '/trees/default-blocks');
363451d4d87SGreg Roach                $router->post(TreePageDefaultUpdate::class, '/trees/default-blocks');
364*6fd01894SGreg Roach                $router->get(MergeTreesPage::class, '/trees/merge');
365*6fd01894SGreg Roach                $router->post(MergeTreesAction::class, '/trees/merge');
366*6fd01894SGreg Roach                $router->post(SynchronizeTrees::class, '/trees/sync');
367*6fd01894SGreg Roach                $router->post(DeleteUser::class, '/users/delete/{user_id}');
368451d4d87SGreg Roach                $router->get(UserPageDefaultEdit::class, '/user-page-default-edit');
369451d4d87SGreg Roach                $router->post(UserPageDefaultUpdate::class, '/user-page-default-update');
3702279b4f3SGreg Roach            });
3712279b4f3SGreg Roach
37257796b09SGreg Roach            // Manager routes (multiple trees).
3732279b4f3SGreg Roach            $router->attach('', '/admin', static function (Map $router) {
3742279b4f3SGreg Roach                $router->extras([
375901ade19SGreg Roach                    'middleware' => [
376901ade19SGreg Roach                        AuthManager::class,
377901ade19SGreg Roach                    ],
3782279b4f3SGreg Roach                ]);
3792279b4f3SGreg Roach
380*6fd01894SGreg Roach                $router->get(ManageTrees::class, '/trees/manage/{tree}');
3812279b4f3SGreg Roach            });
3822279b4f3SGreg Roach
3832279b4f3SGreg Roach            // Manager routes.
3842279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
3852279b4f3SGreg Roach                $router->extras([
386901ade19SGreg Roach                    'middleware' => [
387901ade19SGreg Roach                        AuthManager::class,
388901ade19SGreg Roach                    ],
3892279b4f3SGreg Roach                ]);
3902279b4f3SGreg Roach
391451d4d87SGreg Roach                $router->get(PendingChangesLogPage::class, '/changes-log');
392451d4d87SGreg Roach                $router->post(PendingChangesLogAction::class, '/changes-log');
393451d4d87SGreg Roach                $router->get(PendingChangesLogData::class, '/changes-data');
394451d4d87SGreg Roach                $router->post(PendingChangesLogDelete::class, '/changes-delete');
395451d4d87SGreg Roach                $router->get(PendingChangesLogDownload::class, '/changes-download');
396*6fd01894SGreg Roach                $router->get(CheckTree::class, '/check');
397451d4d87SGreg Roach                $router->get(DataFixChoose::class, '/data-fix');
398451d4d87SGreg Roach                $router->post(DataFixSelect::class, '/data-fix');
399451d4d87SGreg Roach                $router->get(DataFixPage::class, '/data-fix/{data_fix}');
400451d4d87SGreg Roach                $router->post(DataFixUpdate::class, '/data-fix/{data_fix}/update');
401451d4d87SGreg Roach                $router->post(DataFixUpdateAll::class, '/data-fix/{data_fix}/update-all');
402451d4d87SGreg Roach                $router->get(DataFixData::class, '/data-fix/{data_fix}/data');
403451d4d87SGreg Roach                $router->get(DataFixPreview::class, '/data-fix/{data_fix}/preview');
404*6fd01894SGreg Roach                $router->get(FindDuplicateRecords::class, '/duplicates');
405451d4d87SGreg Roach                $router->get(ExportGedcomPage::class, '/export');
406451d4d87SGreg Roach                $router->post(ExportGedcomClient::class, '/export-client');
407451d4d87SGreg Roach                $router->post(ExportGedcomServer::class, '/export-server');
408*6fd01894SGreg Roach                $router->get(ImportGedcomPage::class, '/import');
409*6fd01894SGreg Roach                $router->post(ImportGedcomAction::class, '/import');
410451d4d87SGreg Roach                $router->get(MergeRecordsPage::class, '/merge-step1');
411451d4d87SGreg Roach                $router->post(MergeRecordsAction::class, '/merge-step1');
412451d4d87SGreg Roach                $router->get(MergeFactsPage::class, '/merge-step2');
413451d4d87SGreg Roach                $router->post(MergeFactsAction::class, '/merge-step2');
414*6fd01894SGreg Roach                $router->get(TreePreferencesPage::class, '/preferences');
415*6fd01894SGreg Roach                $router->post(TreePreferencesAction::class, '/preferences');
416*6fd01894SGreg Roach                $router->get(RenumberTreePage::class, '/renumber');
417*6fd01894SGreg Roach                $router->post(RenumberTreeAction::class, '/renumber');
418451d4d87SGreg Roach                $router->get(TreePageEdit::class, '/tree-page-edit');
419*6fd01894SGreg Roach                $router->post(GedcomLoad::class, '/load');
420451d4d87SGreg Roach                $router->post(TreePageUpdate::class, '/tree-page-update');
421451d4d87SGreg Roach                $router->get(TreePageBlockEdit::class, '/tree-page-block-edit');
422451d4d87SGreg Roach                $router->post(TreePageBlockUpdate::class, '/tree-page-block-edit');
423*6fd01894SGreg Roach                $router->get(TreePrivacyPage::class, '/privacy');
424*6fd01894SGreg Roach                $router->post(TreePrivacyAction::class, '/privacy');
425451d4d87SGreg Roach                $router->get(UnconnectedPage::class, '/unconnected');
426451d4d87SGreg Roach                $router->post(UnconnectedAction::class, '/unconnected');
4272279b4f3SGreg Roach            });
4282279b4f3SGreg Roach
4292279b4f3SGreg Roach            // Moderator routes.
4302279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4312279b4f3SGreg Roach                $router->extras([
432901ade19SGreg Roach                    'middleware' => [
433901ade19SGreg Roach                        AuthModerator::class,
434901ade19SGreg Roach                    ],
4352279b4f3SGreg Roach                ]);
436451d4d87SGreg Roach                $router->post(PendingChangesAcceptTree::class, '/accept');
437451d4d87SGreg Roach                $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}');
438451d4d87SGreg Roach                $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}');
439451d4d87SGreg Roach                $router->get(PendingChanges::class, '/pending');
440451d4d87SGreg Roach                $router->post(PendingChangesRejectTree::class, '/reject');
441451d4d87SGreg Roach                $router->post(PendingChangesRejectRecord::class, '/reject/{xref}');
442451d4d87SGreg Roach                $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}');
4432279b4f3SGreg Roach            });
4442279b4f3SGreg Roach
4452279b4f3SGreg Roach            // Editor routes.
4462279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
4472279b4f3SGreg Roach                $router->extras([
448901ade19SGreg Roach                    'middleware' => [
449901ade19SGreg Roach                        AuthEditor::class,
450901ade19SGreg Roach                    ],
4512279b4f3SGreg Roach                ]);
4522279b4f3SGreg Roach
453451d4d87SGreg Roach                $router->get(AddChildToFamilyPage::class, '/add-child-to-family');
454451d4d87SGreg Roach                $router->post(AddChildToFamilyAction::class, '/add-child-to-family');
455451d4d87SGreg Roach                $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}');
456451d4d87SGreg Roach                $router->post(SelectNewFact::class, '/add-fact/{xref}');
4572279b4f3SGreg Roach                $router->get('add-media-file', '/add-media-file', 'EditMediaController::addMediaFile');
4582279b4f3SGreg Roach                $router->post('add-media-file-update', '/add-media-file', 'EditMediaController::addMediaFileAction');
459451d4d87SGreg Roach                $router->get(AddName::class, '/add-name');
460451d4d87SGreg Roach                $router->get(AddSpouseToFamilyPage::class, '/add-spouse-to-family');
461451d4d87SGreg Roach                $router->post(AddSpouseToFamilyAction::class, '/add-spouse-to-family');
462451d4d87SGreg Roach                $router->get(ChangeFamilyMembersPage::class, '/change-family-members');
463451d4d87SGreg Roach                $router->post(ChangeFamilyMembersAction::class, '/change-family-members');
464451d4d87SGreg Roach                $router->get(CreateMediaObjectModal::class, '/create-media-object');
465451d4d87SGreg Roach                $router->post(CreateMediaObjectAction::class, '/create-media-object');
4662279b4f3SGreg Roach                $router->post('create-media-from-file', '/create-media-from-file', 'EditMediaController::createMediaObjectFromFileAction');
467451d4d87SGreg Roach                $router->post(CopyFact::class, '/copy/{xref}/{fact_id}');
468451d4d87SGreg Roach                $router->get(CreateNoteModal::class, '/create-note-object');
469451d4d87SGreg Roach                $router->post(CreateNoteAction::class, '/create-note-object');
470451d4d87SGreg Roach                $router->get(CreateRepositoryModal::class, '/create-repository');
471451d4d87SGreg Roach                $router->post(CreateRepositoryAction::class, '/create-repository');
472451d4d87SGreg Roach                $router->get(CreateSourceModal::class, '/create-source');
473451d4d87SGreg Roach                $router->post(CreateSourceAction::class, '/create-source');
474451d4d87SGreg Roach                $router->get(CreateSubmitterModal::class, '/create-submitter');
475451d4d87SGreg Roach                $router->post(CreateSubmitterAction::class, '/create-submitter');
476451d4d87SGreg Roach                $router->post(DeleteRecord::class, '/delete/{xref}');
477451d4d87SGreg Roach                $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}');
478451d4d87SGreg Roach                $router->get(EditFactPage::class, '/edit-fact/{xref}/{fact_id}');
479451d4d87SGreg Roach                $router->post(EditFactAction::class, '/update-fact/{xref}{/fact_id}');
4802279b4f3SGreg Roach                $router->get('edit-media-file', '/edit-media-file', 'EditMediaController::editMediaFile');
4812279b4f3SGreg Roach                $router->post('edit-media-file-update', '/edit-media-file', 'EditMediaController::editMediaFileAction');
482316db80eSGreg Roach                $router->get('edit-note-object', '/edit-note-object/{xref}', 'EditNoteController::editNoteObject');
483316db80eSGreg Roach                $router->post('edit-note-object-action', '/edit-note-object/{xref}', 'EditNoteController::updateNoteObject');
484451d4d87SGreg Roach                $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}');
485451d4d87SGreg Roach                $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}');
486451d4d87SGreg Roach                $router->get(EditRawRecordPage::class, '/edit-raw/{xref}');
487451d4d87SGreg Roach                $router->post(EditRawRecordAction::class, '/edit-raw/{xref}');
4882279b4f3SGreg Roach                $router->get('link-media-to-individual', '/link-media-to-individual', 'EditMediaController::linkMediaToIndividual');
4892279b4f3SGreg Roach                $router->get('link-media-to-family', '/link-media-to-family', 'EditMediaController::linkMediaToFamily');
4902279b4f3SGreg Roach                $router->get('link-media-to-source', '/link-media-to-source', 'EditMediaController::linkMediaToSource');
491814c6707SGreg Roach                $router->post('link-media-to-record', '/link-media-to-record/{xref}', 'EditMediaController::linkMediaToRecordAction');
492451d4d87SGreg Roach                $router->post(PasteFact::class, '/paste-fact/{xref}');
493451d4d87SGreg Roach                $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}');
494451d4d87SGreg Roach                $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}');
495451d4d87SGreg Roach                $router->get(ReorderMediaPage::class, '/reorder-media/{xref}');
496451d4d87SGreg Roach                $router->post(ReorderMediaAction::class, '/reorder-media/{xref}');
497451d4d87SGreg Roach                $router->get(ReorderNamesPage::class, '/reorder-names/{xref}');
498451d4d87SGreg Roach                $router->post(ReorderNamesAction::class, '/reorder-names/{xref}');
499451d4d87SGreg Roach                $router->get(ReorderFamiliesPage::class, '/reorder-spouses/{xref}');
500451d4d87SGreg Roach                $router->post(ReorderFamiliesAction::class, '/reorder-spouses/{xref}');
501451d4d87SGreg Roach                $router->get(SearchReplacePage::class, '/search-replace');
502451d4d87SGreg Roach                $router->post(SearchReplaceAction::class, '/search-replace');
503451d4d87SGreg Roach                $router->get(AddChildToIndividualPage::class, '/add-child-to-individual');
504451d4d87SGreg Roach                $router->post(AddChildToIndividualAction::class, '/add-child-to-individual');
505451d4d87SGreg Roach                $router->get(AddParentToIndividualPage::class, '/add-parent-to-individual');
506451d4d87SGreg Roach                $router->post(AddParentToIndividualAction::class, '/add-parent-to-individual');
507451d4d87SGreg Roach                $router->get(AddSpouseToIndividualPage::class, '/add-spouse-to-individual');
508451d4d87SGreg Roach                $router->post(AddSpouseToIndividualAction::class, '/add-spouse-to-individual');
509451d4d87SGreg Roach                $router->get(AddUnlinkedPage::class, '/add-unlinked-individual');
510451d4d87SGreg Roach                $router->post(AddUnlinkedAction::class, '/add-unlinked-individual');
511451d4d87SGreg Roach                $router->get(LinkChildToFamilyPage::class, '/link-child-to-family');
512451d4d87SGreg Roach                $router->post(LinkChildToFamilyAction::class, '/link-child-to-family');
513451d4d87SGreg Roach                $router->get(LinkSpouseToIndividualPage::class, '/link-spouse-to-individual');
514451d4d87SGreg Roach                $router->post(LinkSpouseToIndividualAction::class, '/link-spouse-to-individual');
515451d4d87SGreg Roach                $router->get(EditName::class, '/edit-name/{xref}/{fact_id}');
5162279b4f3SGreg Roach            });
5172279b4f3SGreg Roach
5182279b4f3SGreg Roach            // Member routes.
5192279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
5202279b4f3SGreg Roach                $router->extras([
521901ade19SGreg Roach                    'middleware' => [
522901ade19SGreg Roach                        AuthMember::class,
523901ade19SGreg Roach                    ],
5242279b4f3SGreg Roach                ]);
5252279b4f3SGreg Roach
526451d4d87SGreg Roach                $router->post(MessageSelect::class, '/message-select');
527451d4d87SGreg Roach                $router->get(MessagePage::class, '/message-compose');
528451d4d87SGreg Roach                $router->post(MessageAction::class, '/message-send');
529451d4d87SGreg Roach                $router->get(UserPage::class, '/my-page');
530451d4d87SGreg Roach                $router->get(UserPageBlock::class, '/my-page-block');
531451d4d87SGreg Roach                $router->get(UserPageEdit::class, '/my-page-edit');
532451d4d87SGreg Roach                $router->post(UserPageUpdate::class, '/my-page-edit');
533451d4d87SGreg Roach                $router->get(UserPageBlockEdit::class, '/my-page-block-edit');
534451d4d87SGreg Roach                $router->post(UserPageBlockUpdate::class, '/my-page-block-edit');
5352279b4f3SGreg Roach            });
5362279b4f3SGreg Roach
5372279b4f3SGreg Roach            // User routes.
5382279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
5392279b4f3SGreg Roach                $router->extras([
540901ade19SGreg Roach                    'middleware' => [
541901ade19SGreg Roach                        AuthLoggedIn::class,
542901ade19SGreg Roach                    ],
5432279b4f3SGreg Roach                ]);
5442279b4f3SGreg Roach
545451d4d87SGreg Roach                $router->get(AccountEdit::class, '/my-account{/tree}');
546451d4d87SGreg Roach                $router->post(AccountUpdate::class, '/my-account{/tree}');
547451d4d87SGreg Roach                $router->post(AccountDelete::class, '/my-account-delete');
5482279b4f3SGreg Roach            });
5492279b4f3SGreg Roach
550f917a287SGreg Roach            // Visitor routes - with an optional tree (for sites with no public trees).
5512279b4f3SGreg Roach            $router->attach('', '', static function (Map $router) {
552451d4d87SGreg Roach                $router->get(LoginPage::class, '/login{/tree}');
553451d4d87SGreg Roach                $router->post(LoginAction::class, '/login{/tree}');
554451d4d87SGreg Roach                $router->get(PasswordRequestPage::class, '/password-request{/tree}');
555451d4d87SGreg Roach                $router->post(PasswordRequestAction::class, '/password-request{/tree}');
556451d4d87SGreg Roach                $router->get(RegisterPage::class, '/register{/tree}');
557451d4d87SGreg Roach                $router->post(RegisterAction::class, '/register{/tree}');
558451d4d87SGreg Roach                $router->get(PasswordResetPage::class, '/password-reset/{token}{/tree}');
559451d4d87SGreg Roach                $router->post(PasswordResetAction::class, '/password-reset/{token}{/tree}');
560451d4d87SGreg Roach                $router->get(VerifyEmail::class, '/verify/{username}/{token}{/tree}');
5612279b4f3SGreg Roach            });
5622279b4f3SGreg Roach
563b45ccc4fSGreg Roach            // Visitor routes with a tree.
5642279b4f3SGreg Roach            $router->attach('', '/tree/{tree}', static function (Map $router) {
565451d4d87SGreg Roach                $router->get(TreePage::class, '');
5662279b4f3SGreg Roach                $router->get('autocomplete-folder', '/autocomplete-folder', 'AutocompleteController::folder');
5672279b4f3SGreg Roach                $router->get('autocomplete-page', '/autocomplete-page', 'AutocompleteController::page');
5682279b4f3SGreg Roach                $router->get('autocomplete-place', '/autocomplete-place', 'AutocompleteController::place');
569451d4d87SGreg Roach                $router->get(CalendarPage::class, '/calendar/{view}');
570451d4d87SGreg Roach                $router->post(CalendarAction::class, '/calendar/{view}');
571451d4d87SGreg Roach                $router->get(CalendarEvents::class, '/calendar-events/{view}');
572451d4d87SGreg Roach                $router->get(ContactPage::class, '/contact');
573451d4d87SGreg Roach                $router->post(ContactAction::class, '/contact');
574451d4d87SGreg Roach                $router->get(FamilyPage::class, '/family/{xref}{/slug}');
575451d4d87SGreg Roach                $router->get(HeaderPage::class, '/header/{xref}{/slug}');
576451d4d87SGreg Roach                $router->get(IndividualPage::class, '/individual/{xref}{/slug}');
577451d4d87SGreg Roach                $router->get(MediaFileThumbnail::class, '/media-thumbnail');
578451d4d87SGreg Roach                $router->get(MediaFileDownload::class, '/media-download');
579451d4d87SGreg Roach                $router->get(MediaPage::class, '/media/{xref}{/slug}');
580451d4d87SGreg Roach                $router->get(NotePage::class, '/note/{xref}{/slug}');
581451d4d87SGreg Roach                $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}');
582451d4d87SGreg Roach                $router->get(RepositoryPage::class, '/repository/{xref}{/slug}');
583451d4d87SGreg Roach                $router->get(ReportListPage::class, '/report');
584451d4d87SGreg Roach                $router->post(ReportListAction::class, '/report');
585451d4d87SGreg Roach                $router->get(ReportSetupPage::class, '/report/{report}');
586451d4d87SGreg Roach                $router->post(ReportSetupAction::class, '/report/{report}');
587451d4d87SGreg Roach                $router->get(ReportGenerate::class, '/report-run/{report}');
588451d4d87SGreg Roach                $router->get(SearchAdvancedPage::class, '/search-advanced');
589451d4d87SGreg Roach                $router->post(SearchAdvancedAction::class, '/search-advanced');
590451d4d87SGreg Roach                $router->get(SearchGeneralPage::class, '/search-general');
591451d4d87SGreg Roach                $router->post(SearchGeneralAction::class, '/search-general');
592451d4d87SGreg Roach                $router->get(SearchPhoneticPage::class, '/search-phonetic');
593451d4d87SGreg Roach                $router->post(SearchPhoneticAction::class, '/search-phonetic');
594451d4d87SGreg Roach                $router->post(SearchQuickAction::class, '/search-quick');
595451d4d87SGreg Roach                $router->post(Select2Family::class, '/select2-family');
596451d4d87SGreg Roach                $router->post(Select2Individual::class, '/select2-individual');
597451d4d87SGreg Roach                $router->post(Select2MediaObject::class, '/select2-media');
598451d4d87SGreg Roach                $router->post(Select2Note::class, '/select2-note');
599451d4d87SGreg Roach                $router->post(Select2Place::class, '/select2-place');
600451d4d87SGreg Roach                $router->post(Select2Source::class, '/select2-source');
601451d4d87SGreg Roach                $router->post(Select2Submitter::class, '/select2-submitter');
602451d4d87SGreg Roach                $router->post(Select2Repository::class, '/select2-repository');
603451d4d87SGreg Roach                $router->get(SourcePage::class, '/source/{xref}{/slug}');
604451d4d87SGreg Roach                $router->get(SubmissionPage::class, '/submission/{xref}{/slug}');
605451d4d87SGreg Roach                $router->get(SubmitterPage::class, '/submitter/{xref}{/slug}');
606451d4d87SGreg Roach                $router->get(TreePageBlock::class, '/tree-page-block');
607451d4d87SGreg Roach                $router->get('example', '/…')
608451d4d87SGreg Roach                    ->isRoutable(false);
6092279b4f3SGreg Roach            });
6102279b4f3SGreg Roach
611b59ec43dSGreg Roach            // Match module routes, with and without a tree.
612b59ec43dSGreg Roach            $router->get('module-tree', '/module/{module}/{action}/{tree}', ModuleAction::class)
6132279b4f3SGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
614b59ec43dSGreg Roach            $router->get('module-no-tree', '/module/{module}/{action}', ModuleAction::class)
615b59ec43dSGreg Roach                ->allows(RequestMethodInterface::METHOD_POST);
616b59ec43dSGreg Roach            // Generate module routes only. The router cannot distinguish a private tree from no tree.
617451d4d87SGreg Roach            $router->get('module', '/module/{module}/{action}{/tree}')
618451d4d87SGreg Roach                ->isRoutable(false);
6192279b4f3SGreg Roach
620451d4d87SGreg Roach            $router->get(HelpText::class, '/help/{topic}');
621451d4d87SGreg Roach            $router->post(SelectLanguage::class, '/language/{language}');
622451d4d87SGreg Roach            $router->post(Logout::class, '/logout');
62364c83a78SGreg Roach            $router->get(Ping::class, '/ping', Ping::class)
62464c83a78SGreg Roach                ->allows(RequestMethodInterface::METHOD_HEAD);
625451d4d87SGreg Roach            $router->get(RobotsTxt::class, '/robots.txt');
626451d4d87SGreg Roach            $router->post(SelectTheme::class, '/theme/{theme}');
627451d4d87SGreg Roach            $router->get(HomePage::class, '/');
6282279b4f3SGreg Roach
62946431a62SGreg Roach            // Some URL rewrite configurations will pass everything not in /public to index.php
630451d4d87SGreg Roach            $router->get(AppleTouchIconPng::class, '/apple-touch-icon.png');
631451d4d87SGreg Roach            $router->get(FaviconIco::class, '/favicon.ico');
632901ade19SGreg Roach        });
6332279b4f3SGreg Roach    }
6342279b4f3SGreg Roach}
635