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\Middleware\AuthVisitor; 312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountDelete; 322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountEdit; 332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AccountUpdate; 342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact; 35e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastAction; 36e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\BroadcastPage; 372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CleanDataFolder; 38e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactAction; 39e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ContactPage; 402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CopyFact; 422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectAction; 432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateMediaObjectModal; 442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteAction; 452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateNoteModal; 462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryAction; 472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateRepositoryModal; 482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceAction; 492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSourceModal; 502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterAction; 512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateSubmitterModal; 522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreeAction; 532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\CreateTreePage; 542279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteFact; 552279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeletePath; 562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteRecord; 572279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteTreeAction; 582279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\DeleteUser; 592279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditFact; 602279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactAction; 612279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawFactPage; 622279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordAction; 632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EditRawRecordPage; 646d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomClient; 656d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomPage; 666d576906SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ExportGedcomServer; 672279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\FamilyPage; 682279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\GedcomRecordPage; 692279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HelpText; 702279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\HomePage; 712279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\IndividualPage; 722279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginAction; 732279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\LoginPage; 742279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Logout; 75040e7dbaSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Masquerade; 762279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MediaPage; 775bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsAction; 785bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeFactsPage; 795bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsAction; 805bbfbb82SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MergeRecordsPage; 81e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageAction; 82e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessagePage; 83e381f98dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\MessageSelect; 842279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ModuleAction; 852279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\NotePage; 862279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestAction; 872279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordRequestPage; 882279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetAction; 892279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasswordResetPage; 902279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PasteFact; 912279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChanges; 922279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptChange; 932279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptRecord; 942279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesAcceptTree; 952279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogAction; 962279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogData; 972279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDelete; 982279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogDownload; 992279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesLogPage; 1002279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectChange; 1012279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectRecord; 1022279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PendingChangesRejectTree; 1032279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\PhpInformation; 1042279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Ping; 1052279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectFamilyPhp; 1062279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectGedRecordPhp; 1072279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectIndividualPhp; 1082279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectMediaViewerPhp; 1092279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectNotePhp; 1102279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectRepoPhp; 1112279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RedirectSourcePhp; 1122279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction; 1132279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterPage; 1142279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenAction; 1152279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage; 1162279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaAction; 1172279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderMediaPage; 1182279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesAction; 1192279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderNamesPage; 1202279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderSpousesAction; 1212279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReorderSpousesPage; 1222279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportGenerate; 1232279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListAction; 1242279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportListPage; 1252279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupAction; 1262279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ReportSetupPage; 1272279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RepositoryPage; 1282279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RobotsTxt; 1292279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedAction; 1302279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchAdvancedPage; 1312279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralAction; 1322279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchGeneralPage; 1332279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticAction; 1342279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchPhoneticPage; 1352279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchQuickAction; 1362279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplaceAction; 1372279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SearchReplacePage; 1382279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Family; 1392279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Individual; 1402279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2MediaObject; 1412279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Note; 1422279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Repository; 1432279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Source; 1442279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\Select2Submitter; 1452279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectDefaultTree; 1462279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectLanguage; 1472279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectNewFact; 1482279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SelectTheme; 1492279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsAction; 1502279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsData; 1512279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDelete; 1522279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsDownload; 1532279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteLogsPage; 154b4144a6dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesAction; 155b4144a6dSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\EmailPreferencesPage; 1562279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SourcePage; 15796716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedAction; 15896716c47SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UnconnectedPage; 159*35b016d9SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpdatePlacesAction; 160*35b016d9SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UpdatePlacesPage; 1612474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupAction; 1622474349cSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\UsersCleanupPage; 1632279b4f3SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\VerifyEmail; 1642279b4f3SGreg Roach 1652279b4f3SGreg Roach/** 1662279b4f3SGreg Roach * Routing table for web requests 1672279b4f3SGreg Roach */ 1682279b4f3SGreg Roachclass WebRoutes 1692279b4f3SGreg Roach{ 1702279b4f3SGreg Roach public function load(Map $router): void 1712279b4f3SGreg Roach { 1722279b4f3SGreg Roach // Admin routes. 1732279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 1742279b4f3SGreg Roach $router->extras([ 175b4144a6dSGreg Roach 'middleware' => [AuthAdministrator::class], 1762279b4f3SGreg Roach ]); 1772279b4f3SGreg Roach 178b4144a6dSGreg Roach $router->get(ControlPanel::class, '', ControlPanel::class); 179b4144a6dSGreg Roach $router->get(BroadcastPage::class, '/broadcast', BroadcastPage::class); 180b4144a6dSGreg Roach $router->post(BroadcastAction::class, '/broadcast', BroadcastAction::class); 181b4144a6dSGreg Roach $router->get(CleanDataFolder::class, '/clean', CleanDataFolder::class); 182b4144a6dSGreg Roach $router->post(DeletePath::class, '/delete-path', DeletePath::class); 183b4144a6dSGreg Roach $router->get(EmailPreferencesPage::class, '/email', EmailPreferencesPage::class); 184b4144a6dSGreg Roach $router->post(EmailPreferencesAction::class, '/email', EmailPreferencesAction::class); 185b4144a6dSGreg Roach $router->get(PhpInformation::class, '/information', PhpInformation::class); 186b4144a6dSGreg Roach $router->get(SiteLogsPage::class, '/logs', SiteLogsPage::class); 187b4144a6dSGreg Roach $router->post(SiteLogsAction::class, '/logs', SiteLogsAction::class); 188b4144a6dSGreg Roach $router->get(SiteLogsData::class, '/logs-data', SiteLogsData::class); 189b4144a6dSGreg Roach $router->post(SiteLogsDelete::class, '/logs-delete', SiteLogsDelete::class); 190b4144a6dSGreg Roach $router->get(SiteLogsDownload::class, '/logs-download', SiteLogsDownload::class); 191b4144a6dSGreg Roach $router->post(Masquerade::class, '/masquerade/{user_id}', Masquerade::class); 1923d180ba8SGreg Roach $router->get('admin-media', '/media', 'Admin\MediaController::index'); 1933d180ba8SGreg Roach $router->post('admin-media-select', '/media', 'Admin\MediaController::select'); 1943d180ba8SGreg Roach $router->get('admin-media-data', '/media-data', 'Admin\MediaController::data'); 1953d180ba8SGreg Roach $router->post('admin-media-delete', '/media-delete', 'Admin\MediaController::delete'); 1963d180ba8SGreg Roach $router->get('admin-media-upload', '/media-upload', 'Admin\MediaController::upload'); 1973d180ba8SGreg Roach $router->post('admin-media-upload-action', '/media-upload', 'Admin\MediaController::uploadAction'); 198b4144a6dSGreg Roach $router->get(CreateTreePage::class, '/trees/create', CreateTreePage::class); 199b4144a6dSGreg Roach $router->post(CreateTreeAction::class, '/trees/create', CreateTreeAction::class); 200b4144a6dSGreg Roach $router->post(SelectDefaultTree::class, '/trees/default/{tree}', SelectDefaultTree::class); 201b4144a6dSGreg Roach $router->post(DeleteTreeAction::class, '/trees/delete/{tree}', DeleteTreeAction::class); 2022279b4f3SGreg Roach $router->get('admin-fix-level-0-media', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0Media'); 2032279b4f3SGreg Roach $router->post('admin-fix-level-0-media-action', '/fix-level-0-media', 'Admin\FixLevel0MediaController::fixLevel0MediaAction'); 2042279b4f3SGreg Roach $router->get('admin-fix-level-0-media-data', '/fix-level-0-media-data', 'Admin\FixLevel0MediaController::fixLevel0MediaData'); 2052279b4f3SGreg Roach $router->get('admin-webtrees1-thumbs', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1Thumbnails'); 2062279b4f3SGreg Roach $router->post('admin-webtrees1-thumbs-action', '/webtrees1-thumbs', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsAction'); 2072279b4f3SGreg Roach $router->get('admin-webtrees1-thumbs-data', '/webtrees1-thumbs-data', 'Admin\ImportThumbnailsController::webtrees1ThumbnailsData'); 2082279b4f3SGreg Roach $router->get('modules', '/modules', 'Admin\ModuleController::list'); 2092279b4f3SGreg Roach $router->post('modules-update', '/modules', 'Admin\ModuleController::update'); 2102279b4f3SGreg Roach $router->get('analytics', '/analytics', 'Admin\ModuleController::listAnalytics'); 2112279b4f3SGreg Roach $router->post('analytics-update', '/analytics', 'Admin\ModuleController::updateAnalytics'); 2122279b4f3SGreg Roach $router->get('blocks', '/blocks', 'Admin\ModuleController::listBlocks'); 2132279b4f3SGreg Roach $router->post('blocks-update', '/blocks', 'Admin\ModuleController::updateBlocks'); 2142279b4f3SGreg Roach $router->get('charts', '/charts', 'Admin\ModuleController::listCharts'); 2152279b4f3SGreg Roach $router->post('charts-update', '/charts', 'Admin\ModuleController::updateCharts'); 2162279b4f3SGreg Roach $router->get('lists', '/lists', 'Admin\ModuleController::listLists'); 2172279b4f3SGreg Roach $router->post('lists-update', '/lists', 'Admin\ModuleController::updateLists'); 2182279b4f3SGreg Roach $router->get('footers', '/footers', 'Admin\ModuleController::listFooters'); 2192279b4f3SGreg Roach $router->post('footers-update', '/footers', 'Admin\ModuleController::updateFooters'); 2202279b4f3SGreg Roach $router->get('history', '/history', 'Admin\ModuleController::listHistory'); 2212279b4f3SGreg Roach $router->post('history-update', '/history', 'Admin\ModuleController::updateHistory'); 2222279b4f3SGreg Roach $router->get('menus', '/menus', 'Admin\ModuleController::listMenus'); 2232279b4f3SGreg Roach $router->post('menus-update', '/menus', 'Admin\ModuleController::updateMenus'); 2242279b4f3SGreg Roach $router->get('languages', '/languages', 'Admin\ModuleController::listLanguages'); 2252279b4f3SGreg Roach $router->post('languages-update', '/languages', 'Admin\ModuleController::updateLanguages'); 2262279b4f3SGreg Roach $router->get('reports', '/reports', 'Admin\ModuleController::listReports'); 2272279b4f3SGreg Roach $router->post('reports-update', '/reports', 'Admin\ModuleController::updateReports'); 2282279b4f3SGreg Roach $router->get('sidebars', '/sidebars', 'Admin\ModuleController::listSidebars'); 2292279b4f3SGreg Roach $router->post('sidebars-update', '/sidebars', 'Admin\ModuleController::updateSidebars'); 2302279b4f3SGreg Roach $router->get('themes', '/themes', 'Admin\ModuleController::listThemes'); 2312279b4f3SGreg Roach $router->post('themes-update', '/themes', 'Admin\ModuleController::updateThemes'); 2322279b4f3SGreg Roach $router->get('tabs', '/tabs', 'Admin\ModuleController::listTabs'); 2332279b4f3SGreg Roach $router->post('tabs-update', '/tabs', 'Admin\ModuleController::updateTabs'); 2342474349cSGreg Roach $router->get(UsersCleanupPage::class, '/users-cleanup', UsersCleanupPage::class); 2352474349cSGreg Roach $router->post(UsersCleanupAction::class, '/users-cleanup', UsersCleanupAction::class); 2362279b4f3SGreg Roach $router->post('delete-module-settings', '/delete-module-settings', 'Admin\ModuleController::deleteModuleSettings'); 2372279b4f3SGreg Roach $router->get('map-data', '/map-data', 'Admin\LocationController::mapData'); 2382279b4f3SGreg Roach $router->get('map-data-edit', '/map-data-edit', 'Admin\LocationController::mapDataEdit'); 2392279b4f3SGreg Roach $router->post('map-data-update', '/map-data-edit', 'Admin\LocationController::mapDataSave'); 2402279b4f3SGreg Roach $router->post('map-data-delete', '/map-data-delete', 'Admin\LocationController::mapDataDelete'); 2412279b4f3SGreg Roach $router->get('locations-export', '/locations-export', 'Admin\LocationController::exportLocations'); 2422279b4f3SGreg Roach $router->get('locations-import', '/locations-import', 'Admin\LocationController::importLocations'); 2432279b4f3SGreg Roach $router->post('locations-import-action', '/locations-import', 'Admin\LocationController::importLocationsAction'); 2442279b4f3SGreg Roach $router->post('locations-import-from-tree', '/locations-import-from-tree', 'Admin\LocationController::importLocationsFromTree'); 2452279b4f3SGreg Roach $router->get('map-provider', '/map-provider', 'Admin\MapProviderController::mapProviderEdit'); 2462279b4f3SGreg Roach $router->post('map-provider-action', '/map-provider', 'Admin\MapProviderController::mapProviderSave'); 2472279b4f3SGreg Roach $router->get('upgrade', '/upgrade', 'Admin\UpgradeController::wizard'); 248c06384d0SGreg Roach $router->post('upgrade-confirm', '/upgrade-confirm', 'Admin\UpgradeController::confirm'); 2492279b4f3SGreg Roach $router->post('upgrade-action', '/upgrade', 'Admin\UpgradeController::step'); 2502279b4f3SGreg Roach $router->get('admin-users', '/admin-users', 'Admin\UsersController::index'); 2512279b4f3SGreg Roach $router->get('admin-users-data', '/admin-users-data', 'Admin\UsersController::data'); 2522279b4f3SGreg Roach $router->get('admin-users-create', '/admin-users-create', 'Admin\UsersController::create'); 2532279b4f3SGreg Roach $router->post('admin-users-create-action', '/admin-users-create', 'Admin\UsersController::save'); 2542279b4f3SGreg Roach $router->get('admin-users-edit', '/admin-users-edit', 'Admin\UsersController::edit'); 2552279b4f3SGreg Roach $router->post('admin-users-update', '/admin-users-edit', 'Admin\UsersController::update'); 2562279b4f3SGreg Roach $router->get('admin-site-preferences', '/admin-site-preferences', 'AdminSiteController::preferencesForm'); 2572279b4f3SGreg Roach $router->post('admin-site-preferences-update', '/admin-site-preferences', 'AdminSiteController::preferencesSave'); 2582279b4f3SGreg Roach $router->get('admin-site-registration', '/admin-site-registration', 'AdminSiteController::registrationForm'); 2592279b4f3SGreg Roach $router->post('admin-site-registration-update', '/admin-site-registration', 'AdminSiteController::registrationSave'); 2602279b4f3SGreg Roach $router->get('tree-page-default-edit', '/trees/default-blocks', 'HomePageController::treePageDefaultEdit'); 2612279b4f3SGreg Roach $router->post('tree-page-default-update', '/trees/default-blocks', 'HomePageController::treePageDefaultUpdate'); 2622279b4f3SGreg Roach $router->get('admin-trees-merge', '/trees/merge', 'AdminTreesController::merge'); 2632279b4f3SGreg Roach $router->post('admin-trees-merge-action', '/trees/merge', 'AdminTreesController::mergeAction'); 2642279b4f3SGreg Roach $router->post('admin-trees-sync', '/trees/sync', 'AdminTreesController::synchronize'); 2652279b4f3SGreg Roach $router->get('unused-media-thumbnail', '/unused-media-thumbnail', 'MediaFileController::unusedMediaThumbnail'); 2662279b4f3SGreg Roach $router->post('delete-user', '/users/delete/{user_id}', DeleteUser::class); 2672279b4f3SGreg Roach $router->get('user-page-default-edit', '/user-page-default-edit', 'HomePageController::userPageDefaultEdit'); 2682279b4f3SGreg Roach $router->post('user-page-default-update', '/user-page-default-update', 'HomePageController::userPageDefaultUpdate'); 2692279b4f3SGreg Roach }); 2702279b4f3SGreg Roach 2712279b4f3SGreg Roach // Manager routes (without a tree). 2722279b4f3SGreg Roach $router->attach('', '/admin', static function (Map $router) { 2732279b4f3SGreg Roach $router->extras([ 274b4144a6dSGreg Roach 'middleware' => [AuthManager::class], 2752279b4f3SGreg Roach ]); 2762279b4f3SGreg Roach 2772279b4f3SGreg Roach $router->get('manage-trees', '/trees/manage{/tree}', 'AdminTreesController::index'); 2782279b4f3SGreg Roach }); 2792279b4f3SGreg Roach 2802279b4f3SGreg Roach // Manager routes. 2812279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 2822279b4f3SGreg Roach $router->extras([ 283b4144a6dSGreg Roach 'middleware' => [AuthManager::class], 2842279b4f3SGreg Roach ]); 2852279b4f3SGreg Roach 2862279b4f3SGreg Roach $router->get(PendingChangesLogPage::class, '/changes-log', PendingChangesLogPage::class); 2872279b4f3SGreg Roach $router->post(PendingChangesLogAction::class, '/changes-log', PendingChangesLogAction::class); 2882279b4f3SGreg Roach $router->get(PendingChangesLogData::class, '/changes-data', PendingChangesLogData::class); 2892279b4f3SGreg Roach $router->post(PendingChangesLogDelete::class, '/changes-delete', PendingChangesLogDelete::class); 2902279b4f3SGreg Roach $router->get(PendingChangesLogDownload::class, '/changes-download', PendingChangesLogDownload::class); 2912279b4f3SGreg Roach $router->get('admin-trees-check', '/check', 'AdminTreesController::check'); 2922279b4f3SGreg Roach $router->get('admin-trees-duplicates', '/duplicates', 'AdminTreesController::duplicates'); 2936d576906SGreg Roach $router->get(ExportGedcomPage::class, '/export', ExportGedcomPage::class); 2946d576906SGreg Roach $router->post(ExportGedcomClient::class, '/export-client', ExportGedcomClient::class); 2956d576906SGreg Roach $router->post(ExportGedcomServer::class, '/export-server', ExportGedcomServer::class); 2962279b4f3SGreg Roach $router->get('admin-trees-import', '/import', 'AdminTreesController::importForm'); 2972279b4f3SGreg Roach $router->post('admin-trees-import-action', '/import', 'AdminTreesController::importAction'); 2985bbfbb82SGreg Roach $router->get(MergeRecordsPage::class, '/merge-step1', MergeRecordsPage::class); 2995bbfbb82SGreg Roach $router->post(MergeRecordsAction::class, '/merge-step1', MergeRecordsAction::class); 3005bbfbb82SGreg Roach $router->get(MergeFactsPage::class, '/merge-step2', MergeFactsPage::class); 3015bbfbb82SGreg Roach $router->post(MergeFactsAction::class, '/merge-step2', MergeFactsAction::class); 302*35b016d9SGreg Roach $router->get(UpdatePlacesPage::class, '/places', UpdatePlacesPage::class); 303*35b016d9SGreg Roach $router->post(UpdatePlacesAction::class, '/places', UpdatePlacesAction::class); 3042279b4f3SGreg Roach $router->get('admin-trees-preferences', '/preferences', 'AdminTreesController::preferences'); 3052279b4f3SGreg Roach $router->post('admin-trees-preferences-update', '/preferences', 'AdminTreesController::preferencesUpdate'); 3062279b4f3SGreg Roach $router->get('admin-trees-renumber', '/renumber', 'AdminTreesController::renumber'); 3072279b4f3SGreg Roach $router->post('admin-trees-renumber-action', '/renumber', 'AdminTreesController::renumberAction'); 3082279b4f3SGreg Roach $router->get('tree-page-edit', '/tree-page-edit', 'HomePageController::treePageEdit'); 3092279b4f3SGreg Roach $router->post('import', '/load', 'GedcomFileController::import'); 3102279b4f3SGreg Roach $router->post('tree-page-update', '/tree-page-update', 'HomePageController::treePageUpdate'); 3112279b4f3SGreg Roach $router->get('tree-page-block-edit', '/tree-page-block-edit', 'HomePageController::treePageBlockEdit'); 3122279b4f3SGreg Roach $router->post('tree-page-block-update', '/tree-page-block-edit', 'HomePageController::treePageBlockUpdate'); 3132279b4f3SGreg Roach $router->get('tree-preferences', '/preferences', 'AdminController::treePreferencesEdit'); 3142279b4f3SGreg Roach $router->post('tree-preferences-update', '/preferences', 'AdminController::treePreferencesUpdate'); 3152279b4f3SGreg Roach $router->get('tree-privacy', '/privacy', 'AdminController::treePrivacyEdit'); 3162279b4f3SGreg Roach $router->post('tree-privacy-update', '/privacy', 'AdminController::treePrivacyUpdate'); 31796716c47SGreg Roach $router->get(UnconnectedPage::class, '/unconnected', UnconnectedPage::class); 31896716c47SGreg Roach $router->post(UnconnectedAction::class, '/unconnected', UnconnectedAction::class); 3192279b4f3SGreg Roach }); 3202279b4f3SGreg Roach 3212279b4f3SGreg Roach // Moderator routes. 3222279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 3232279b4f3SGreg Roach $router->extras([ 324b4144a6dSGreg Roach 'middleware' => [AuthModerator::class], 3252279b4f3SGreg Roach ]); 3262279b4f3SGreg Roach $router->post(PendingChangesAcceptTree::class, '/accept', PendingChangesAcceptTree::class); 3272279b4f3SGreg Roach $router->post(PendingChangesAcceptRecord::class, '/accept/{xref}', PendingChangesAcceptRecord::class); 3282279b4f3SGreg Roach $router->post(PendingChangesAcceptChange::class, '/accept/{xref}/{change}', PendingChangesAcceptChange::class); 3292279b4f3SGreg Roach $router->get(PendingChanges::class, '/pending', PendingChanges::class); 3302279b4f3SGreg Roach $router->post(PendingChangesRejectTree::class, '/reject', PendingChangesRejectTree::class); 3312279b4f3SGreg Roach $router->post(PendingChangesRejectRecord::class, '/reject/{xref}', PendingChangesRejectRecord::class); 3322279b4f3SGreg Roach $router->post(PendingChangesRejectChange::class, '/reject/{xref}/{change}', PendingChangesRejectChange::class); 3332279b4f3SGreg Roach }); 3342279b4f3SGreg Roach 3352279b4f3SGreg Roach // Editor routes. 3362279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 3372279b4f3SGreg Roach $router->extras([ 338b4144a6dSGreg Roach 'middleware' => [AuthEditor::class], 3392279b4f3SGreg Roach ]); 3402279b4f3SGreg Roach 3412279b4f3SGreg Roach $router->get('add-child-to-family', '/add-child-to-family', 'EditFamilyController::addChild'); 3422279b4f3SGreg Roach $router->post('add-child-to-family-action', '/add-child-to-family', 'EditFamilyController::addChildAction'); 3432279b4f3SGreg Roach $router->get(AddNewFact::class, '/add-fact/{xref}/{fact}', AddNewFact::class); 3442279b4f3SGreg Roach $router->post(SelectNewFact::class, '/add-fact/{xref}', SelectNewFact::class); 3452279b4f3SGreg Roach $router->get('add-media-file', '/add-media-file', 'EditMediaController::addMediaFile'); 3462279b4f3SGreg Roach $router->post('add-media-file-update', '/add-media-file', 'EditMediaController::addMediaFileAction'); 3472279b4f3SGreg Roach $router->get('add-name', '/add-name', 'EditIndividualController::addName'); 3482279b4f3SGreg Roach $router->post('add-name-action', '/add-name-update/{xref}', 'EditIndividualController::addNameAction'); 3492279b4f3SGreg Roach $router->get('add-spouse-to-family', '/add-spouse-to-family', 'EditFamilyController::addSpouse'); 3502279b4f3SGreg Roach $router->post('add-spouse-to-family-action', '/add-spouse-to-family', 'EditFamilyController::addSpouseAction'); 3512279b4f3SGreg Roach $router->get('change-family-members', '/change-family-members', 'EditFamilyController::changeFamilyMembers'); 3522279b4f3SGreg Roach $router->post('change-family-members-action', '/change-family-members', 'EditFamilyController::changeFamilyMembersAction'); 3532279b4f3SGreg Roach $router->get(CreateMediaObjectModal::class, '/create-media-object', CreateMediaObjectModal::class); 3542279b4f3SGreg Roach $router->post(CreateMediaObjectAction::class, '/create-media-object', CreateMediaObjectAction::class); 3552279b4f3SGreg Roach $router->post('create-media-from-file', '/create-media-from-file', 'EditMediaController::createMediaObjectFromFileAction'); 3562279b4f3SGreg Roach $router->post(CopyFact::class, '/copy/{xref}/{fact_id}', CopyFact::class); 3572279b4f3SGreg Roach $router->get(CreateNoteModal::class, '/create-note-object', CreateNoteModal::class); 3582279b4f3SGreg Roach $router->post(CreateNoteAction::class, '/create-note-object', CreateNoteAction::class); 3592279b4f3SGreg Roach $router->get(CreateRepositoryModal::class, '/create-repository', CreateRepositoryModal::class); 3602279b4f3SGreg Roach $router->post(CreateRepositoryAction::class, '/create-repository', CreateRepositoryAction::class); 3612279b4f3SGreg Roach $router->get(CreateSourceModal::class, '/create-source', CreateSourceModal::class); 3622279b4f3SGreg Roach $router->post(CreateSourceAction::class, '/create-source', CreateSourceAction::class); 3632279b4f3SGreg Roach $router->get(CreateSubmitterModal::class, '/create-submitter', CreateSubmitterModal::class); 3642279b4f3SGreg Roach $router->post(CreateSubmitterAction::class, '/create-submitter', CreateSubmitterAction::class); 3652279b4f3SGreg Roach $router->post(DeleteRecord::class, '/delete/{xref}', DeleteRecord::class); 3662279b4f3SGreg Roach $router->post(DeleteFact::class, '/delete/{xref}/{fact_id}', DeleteFact::class); 3672279b4f3SGreg Roach $router->get(EditFact::class, '/edit-fact', EditFact::class); 3682279b4f3SGreg Roach $router->get('edit-media-file', '/edit-media-file', 'EditMediaController::editMediaFile'); 3692279b4f3SGreg Roach $router->post('edit-media-file-update', '/edit-media-file', 'EditMediaController::editMediaFileAction'); 3702279b4f3SGreg Roach $router->get('edit-note-object', '/edit-note-object', 'EditNoteController::editNoteObject'); 3712279b4f3SGreg Roach $router->post('edit-note-object-action', '/edit-note-object', 'EditNoteController::updateNoteObject'); 3722279b4f3SGreg Roach $router->get(EditRawFactPage::class, '/edit-raw/{xref}/{fact_id}', EditRawFactPage::class); 3732279b4f3SGreg Roach $router->post(EditRawFactAction::class, '/edit-raw/{xref}/{fact_id}', EditRawFactAction::class); 3742279b4f3SGreg Roach $router->get(EditRawRecordPage::class, '/edit-raw/{xref}', EditRawRecordPage::class); 3752279b4f3SGreg Roach $router->post(EditRawRecordAction::class, '/edit-raw/{xref}', EditRawRecordAction::class); 3762279b4f3SGreg Roach $router->get('link-media-to-individual', '/link-media-to-individual', 'EditMediaController::linkMediaToIndividual'); 3772279b4f3SGreg Roach $router->get('link-media-to-family', '/link-media-to-family', 'EditMediaController::linkMediaToFamily'); 3782279b4f3SGreg Roach $router->get('link-media-to-source', '/link-media-to-source', 'EditMediaController::linkMediaToSource'); 3792279b4f3SGreg Roach $router->post('link-media-to-record', '/link-media-to-record', 'EditMediaController::linkMediaToRecordAction'); 3802279b4f3SGreg Roach $router->post(PasteFact::class, '/paste-fact/{xref}', PasteFact::class); 3812279b4f3SGreg Roach $router->get(ReorderChildrenPage::class, '/reorder-children/{xref}', ReorderChildrenPage::class); 3822279b4f3SGreg Roach $router->post(ReorderChildrenAction::class, '/reorder-children/{xref}', ReorderChildrenAction::class); 3832279b4f3SGreg Roach $router->get(ReorderMediaPage::class, '/reorder-media/{xref}', ReorderMediaPage::class); 3842279b4f3SGreg Roach $router->post(ReorderMediaAction::class, '/reorder-media/{xref}', ReorderMediaAction::class); 3852279b4f3SGreg Roach $router->get(ReorderNamesPage::class, '/reorder-names/{xref}', ReorderNamesPage::class); 3862279b4f3SGreg Roach $router->post(ReorderNamesAction::class, '/reorder-names/{xref}', ReorderNamesAction::class); 3872279b4f3SGreg Roach $router->get(ReorderSpousesPage::class, '/reorder-spouses/{xref}', ReorderSpousesPage::class); 3882279b4f3SGreg Roach $router->post(ReorderSpousesAction::class, '/reorder-spouses/{xref}', ReorderSpousesAction::class); 3892279b4f3SGreg Roach $router->get(SearchReplacePage::class, '/search-replace', SearchReplacePage::class); 3902279b4f3SGreg Roach $router->post(SearchReplaceAction::class, '/search-replace', SearchReplaceAction::class); 3912279b4f3SGreg Roach $router->get('add-child-to-individual', '/add-child-to-individual', 'EditIndividualController::addChild'); 3922279b4f3SGreg Roach $router->post('add-child-to-individual-action', '/add-child-to-individual', 'EditIndividualController::addChildAction'); 3932279b4f3SGreg Roach $router->get('add-parent-to-individual', '/add-parent-to-individual', 'EditIndividualController::addParent'); 3942279b4f3SGreg Roach $router->post('add-parent-to-individual-action', '/add-parent-to-individual', 'EditIndividualController::addParentAction'); 3952279b4f3SGreg Roach $router->get('add-spouse-to-individual', '/add-spouse-to-individual', 'EditIndividualController::addSpouse'); 3962279b4f3SGreg Roach $router->post('add-spouse-to-individual-action', '/add-spouse-to-individual', 'EditIndividualController::addSpouseAction'); 3972279b4f3SGreg Roach $router->get('add-unlinked-individual', '/add-unlinked-individual', 'EditIndividualController::addUnlinked'); 3982279b4f3SGreg Roach $router->post('add-unlinked-individual-action', '/add-unlinked-individual', 'EditIndividualController::addUnlinkedAction'); 3992279b4f3SGreg Roach $router->get('link-child-to-family', '/link-child-to-family', 'EditIndividualController::linkChildToFamily'); 4002279b4f3SGreg Roach $router->post('link-child-to-family-action', '/link-child-to-family', 'EditIndividualController::linkChildToFamilyAction'); 4012279b4f3SGreg Roach $router->get('link-spouse-to-individual', '/link-spouse-to-individual', 'EditIndividualController::linkSpouseToIndividual'); 4022279b4f3SGreg Roach $router->post('link-spouse-to-individual-action', '/link-spouse-to-individual', 'EditIndividualController::linkSpouseToIndividualAction'); 4032279b4f3SGreg Roach $router->get('edit-name', '/edit-name/{xref}/{fact_id}', 'EditIndividualController::editName'); 4042279b4f3SGreg Roach $router->post('edit-name-action', '/edit-name-update/{xref}/{fact_id}', 'EditIndividualController::editNameAction'); 4052279b4f3SGreg Roach $router->post('update-fact', '/update-fact/{xref}{/fact_id}', 'EditGedcomRecordController::updateFact'); 4062279b4f3SGreg Roach }); 4072279b4f3SGreg Roach 4082279b4f3SGreg Roach // Member routes. 4092279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4102279b4f3SGreg Roach $router->extras([ 411b4144a6dSGreg Roach 'middleware' => [AuthMember::class], 4122279b4f3SGreg Roach ]); 4132279b4f3SGreg Roach 4142279b4f3SGreg Roach $router->get('user-page', '/my-page', 'HomePageController::userPage'); 4152279b4f3SGreg Roach $router->get('user-page-block', '/my-page-block', 'HomePageController::userPageBlock'); 4162279b4f3SGreg Roach $router->get('user-page-edit', '/my-page-edit', 'HomePageController::userPageEdit'); 4172279b4f3SGreg Roach $router->post('user-page-update', '/my-page-edit', 'HomePageController::userPageUpdate'); 4182279b4f3SGreg Roach $router->get('user-page-block-edit', '/my-page-block-edit', 'HomePageController::userPageBlockEdit'); 4192279b4f3SGreg Roach $router->post('user-page-block-update', '/my-page-block-edit', 'HomePageController::userPageBlockUpdate'); 4202279b4f3SGreg Roach }); 4212279b4f3SGreg Roach 4222279b4f3SGreg Roach // User routes. 4232279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 4242279b4f3SGreg Roach $router->extras([ 425b4144a6dSGreg Roach 'middleware' => [AuthLoggedIn::class], 4262279b4f3SGreg Roach ]); 4272279b4f3SGreg Roach 4282279b4f3SGreg Roach $router->get(AccountEdit::class, '/my-account{/tree}', AccountEdit::class); 4292279b4f3SGreg Roach $router->post(AccountUpdate::class, '/my-account{/tree}', AccountUpdate::class); 4302279b4f3SGreg Roach $router->post(AccountDelete::class, '/my-account-delete', AccountDelete::class); 4312279b4f3SGreg Roach }); 4322279b4f3SGreg Roach 4332279b4f3SGreg Roach // Visitor routes. 4342279b4f3SGreg Roach $router->attach('', '', static function (Map $router) { 4352279b4f3SGreg Roach $router->extras([ 436b4144a6dSGreg Roach 'middleware' => [AuthVisitor::class], 4372279b4f3SGreg Roach ]); 4382279b4f3SGreg Roach 4392279b4f3SGreg Roach $router->get(PasswordRequestPage::class, '/password-request', PasswordRequestPage::class); 4402279b4f3SGreg Roach $router->post(PasswordRequestAction::class, '/password-request', PasswordRequestAction::class); 4412279b4f3SGreg Roach $router->get(RegisterPage::class, '/register', RegisterPage::class); 4422279b4f3SGreg Roach $router->post(RegisterAction::class, '/register', RegisterAction::class); 4432279b4f3SGreg Roach }); 4442279b4f3SGreg Roach 4452279b4f3SGreg Roach // Public routes. 4462279b4f3SGreg Roach $router->attach('', '/tree/{tree}', static function (Map $router) { 4476d576906SGreg Roach $router->get('tree-page', '', 'HomePageController::treePage'); 4482279b4f3SGreg Roach $router->get('autocomplete-folder', '/autocomplete-folder', 'AutocompleteController::folder'); 4492279b4f3SGreg Roach $router->get('autocomplete-page', '/autocomplete-page', 'AutocompleteController::page'); 4502279b4f3SGreg Roach $router->get('autocomplete-place', '/autocomplete-place', 'AutocompleteController::place'); 4512279b4f3SGreg Roach $router->get('calendar', '/calendar/{view}', 'CalendarController::page'); 4522839b8ceSGreg Roach $router->post('calendar-select', '/calendar/{view}', 'CalendarController::select'); 4532279b4f3SGreg Roach $router->get('calendar-events', '/calendar-events/{view}', 'CalendarController::calendar'); 454e381f98dSGreg Roach $router->get(ContactPage::class, '/contact', ContactPage::class); 455e381f98dSGreg Roach $router->post(ContactAction::class, '/contact', ContactAction::class); 4562279b4f3SGreg Roach $router->get(FamilyPage::class, '/family/{xref}{/slug}', FamilyPage::class); 4572279b4f3SGreg Roach $router->get(IndividualPage::class, '/individual/{xref}{/slug}', IndividualPage::class); 4582279b4f3SGreg Roach $router->get('media-thumbnail', '/media-thumbnail', 'MediaFileController::mediaThumbnail'); 4592279b4f3SGreg Roach $router->get('media-download', '/media-download', 'MediaFileController::mediaDownload'); 4602279b4f3SGreg Roach $router->get(MediaPage::class, '/media/{xref}{/slug}', MediaPage::class); 461e381f98dSGreg Roach $router->post(MessageSelect::class, '/message-select', MessageSelect::class); 462e381f98dSGreg Roach $router->get(MessagePage::class, '/message-compose', MessagePage::class); 463e381f98dSGreg Roach $router->post(MessageAction::class, '/message-send', MessageAction::class); 4642279b4f3SGreg Roach $router->get(NotePage::class, '/note/{xref}{/slug}', NotePage::class); 4652279b4f3SGreg Roach $router->get(GedcomRecordPage::class, '/record/{xref}{/slug}', GedcomRecordPage::class); 4662279b4f3SGreg Roach $router->get(RepositoryPage::class, '/repository/{xref}{/slug}', RepositoryPage::class); 4672279b4f3SGreg Roach $router->get(ReportListPage::class, '/report', ReportListPage::class); 4682279b4f3SGreg Roach $router->post(ReportListAction::class, '/report', ReportListAction::class); 4692279b4f3SGreg Roach $router->get(ReportSetupPage::class, '/report/{report}', ReportSetupPage::class); 4702279b4f3SGreg Roach $router->post(ReportSetupAction::class, '/report/{report}', ReportSetupAction::class); 4712279b4f3SGreg Roach $router->get(ReportGenerate::class, '/report-run/{report}', ReportGenerate::class); 4722279b4f3SGreg Roach $router->get(SearchAdvancedPage::class, '/search-advanced', SearchAdvancedPage::class); 4732279b4f3SGreg Roach $router->post(SearchAdvancedAction::class, '/search-advanced', SearchAdvancedAction::class); 4742279b4f3SGreg Roach $router->get(SearchGeneralPage::class, '/search-general', SearchGeneralPage::class); 4752279b4f3SGreg Roach $router->post(SearchGeneralAction::class, '/search-general', SearchGeneralAction::class); 4762279b4f3SGreg Roach $router->get(SearchPhoneticPage::class, '/search-phonetic', SearchPhoneticPage::class); 4772279b4f3SGreg Roach $router->post(SearchPhoneticAction::class, '/search-phonetic', SearchPhoneticAction::class); 4782279b4f3SGreg Roach $router->post(SearchQuickAction::class, '/search-quick', SearchQuickAction::class); 4792279b4f3SGreg Roach $router->post(Select2Family::class, '/select2-family', Select2Family::class); 4802279b4f3SGreg Roach $router->post(Select2Individual::class, '/select2-individual', Select2Individual::class); 4812279b4f3SGreg Roach $router->post(Select2MediaObject::class, '/select2-media', Select2MediaObject::class); 4822279b4f3SGreg Roach $router->post(Select2Note::class, '/select2-note', Select2Note::class); 4832279b4f3SGreg Roach $router->post(Select2Source::class, '/select2-source', Select2Source::class); 4842279b4f3SGreg Roach $router->post(Select2Submitter::class, '/select2-submitter', Select2Submitter::class); 4852279b4f3SGreg Roach $router->post(Select2Repository::class, '/select2-repository', Select2Repository::class); 4862279b4f3SGreg Roach $router->get(SourcePage::class, '/source/{xref}{/slug}', SourcePage::class); 4872279b4f3SGreg Roach $router->get('tree-page-block', '/tree-page-block', 'HomePageController::treePageBlock'); 4882279b4f3SGreg Roach $router->get('example', '/…'); 4892279b4f3SGreg Roach }); 4902279b4f3SGreg Roach 4912279b4f3SGreg Roach $router->get('module', '/module/{module}/{action}{/tree}', ModuleAction::class) 4922279b4f3SGreg Roach ->allows(RequestMethodInterface::METHOD_POST); 4932279b4f3SGreg Roach 4942279b4f3SGreg Roach $router->get(HelpText::class, '/help/{topic}', HelpText::class); 4952279b4f3SGreg Roach $router->post(SelectLanguage::class, '/language/{language}', SelectLanguage::class); 4962279b4f3SGreg Roach $router->get(LoginPage::class, '/login{/tree}', LoginPage::class); 4972279b4f3SGreg Roach $router->post(LoginAction::class, '/login{/tree}', LoginAction::class); 4982279b4f3SGreg Roach $router->post(Logout::class, '/logout', Logout::class); 4992279b4f3SGreg Roach $router->get(PasswordResetPage::class, '/password-reset', PasswordResetPage::class); 5002279b4f3SGreg Roach $router->post(PasswordResetAction::class, '/password-reset', PasswordResetAction::class); 5012279b4f3SGreg Roach $router->get(Ping::class, '/ping', Ping::class); 5022279b4f3SGreg Roach $router->get(RobotsTxt::class, '/robots.txt', RobotsTxt::class); 5032279b4f3SGreg Roach $router->post(SelectTheme::class, '/theme/{theme}', SelectTheme::class); 5042279b4f3SGreg Roach $router->get(VerifyEmail::class, '/verify', VerifyEmail::class); 5052279b4f3SGreg Roach $router->get(HomePage::class, '/', HomePage::class); 5062279b4f3SGreg Roach 5072279b4f3SGreg Roach // Legacy URLs from older software. 5082279b4f3SGreg Roach $router->get(RedirectFamilyPhp::class, '/family.php', RedirectFamilyPhp::class); 5092279b4f3SGreg Roach $router->get(RedirectGedRecordPhp::class, '/gedrecord.php', RedirectGedRecordPhp::class); 5102279b4f3SGreg Roach $router->get(RedirectIndividualPhp::class, '/individual.php', RedirectIndividualPhp::class); 5112279b4f3SGreg Roach $router->get(RedirectMediaViewerPhp::class, '/mediaviewer.php', RedirectMediaViewerPhp::class); 5122279b4f3SGreg Roach $router->get(RedirectNotePhp::class, '/note.php', RedirectNotePhp::class); 5132279b4f3SGreg Roach $router->get(RedirectRepoPhp::class, '/repository.php', RedirectRepoPhp::class); 5142279b4f3SGreg Roach $router->get(RedirectSourcePhp::class, '/source.php', RedirectSourcePhp::class); 5152279b4f3SGreg Roach } 5162279b4f3SGreg Roach} 517