Skip to content

Routes

Routes are split by context and brand. The entrypoint is routes/web.php which chooses the route set based on WEBSITE_CODE or host.

Context Selection routes/web.php selects among routes/web/mintocom.php, routes/web/mintoapartments.php, routes/web/mintoapartmentreit.php, and routes/web/backend.php.

Admin Routes (Backend) Main file: routes/web/backend.php.

Submodules (Observed): - routes/web/backend/maingroup.php (regional content) - routes/web/backend/projects.php (communities, floorplans, collections) - routes/web/backend/assets.php (forms, media, slideshows, builder sections) - routes/web/backend/websites.php (national level) - routes/web/backend/corporate.php (corporate content, REIT reports)

Frontend Routes - Mintocom: routes/web/mintocom/* includes regional listings, project pages, news, and data endpoints. - Mintoapartments: routes/web/mintoapartments/* includes rentals, resources, and blog. - Mintoapartmentreit: routes/web/mintoapartmentreit/core.php includes investor reports filters and REIT pages.

Data and Feed Endpoints (Observed) - Mintocom data endpoints: routes/web/mintocom/data.php. - Mintocom feeds: routes/web/mintocom/feeds.php (Adobe Target CSV feed). - Mintoapartments data endpoints are referenced from routes/web/mintocom/data.php for shared feeds.

Examples (Observed Patterns) - Regional listings: /{city}/{category}/projects.html. - Regional pages: /{city}/{category}/projects/{pagename}~{page_id}.html. - Community pages: /{city}/{category}/{project}/main.html. - REIT reports filter: /reports/get-by-filter.

Notes - URL building and slug logic lives in app/Models/Legacy/RW.php. - Additional legacy redirects are hardcoded in app/Models/PatternRedirects.php.