/** * Route Mappings * (sails.config.routes) * * Your routes tell Sails what to do each time it receives a request. * * For more information on configuring custom routes, check out: * https://sailsjs.com/anatomy/config/routes-js */ module.exports.routes = { // ╦ ╦╔═╗╔╗ ╔═╗╔═╗╔═╗╔═╗╔═╗ // ║║║║╣ ╠╩╗╠═╝╠═╣║ ╦║╣ ╚═╗ // ╚╩╝╚═╝╚═╝╩ ╩ ╩╚═╝╚═╝╚═╝ 'GET /': { action: 'view-homepage-or-redirect', locals: { isHomepage: true } }, 'GET /company/contact': { action: 'view-contact' }, 'GET /get-started': { action: 'view-pricing' }, 'GET /install': 'https://github.com/fleetdm/fleet/blob/main/README.md', // « FUTURE: When ready, bring back { action: 'view-get-started' } '/documentation': 'https://github.com/fleetdm/fleet/tree/main/docs', '/hall-of-fame': 'https://github.com/fleetdm/fleet/pulse', '/company/about': '/blog', // FUTURE: brief "about" page explaining the origins of the company 'GET /queries': { action: 'view-query-library' }, 'GET /queries/:slug': { action: 'view-query-detail' }, '/contribute': 'https://github.com/fleetdm/fleet/tree/main/docs/3-Contributing', '/company/stewardship': 'https://github.com/fleetdm/fleet', // FUTURE: page about how we approach open source and our commitments to the community '/legal/terms': 'https://docs.google.com/document/d/1OM6YDVIs7bP8wg6iA3VG13X086r64tWDqBSRudG4a0Y/edit', '/security': 'https://github.com/fleetdm/fleet/security/policy', '/blog': 'https://medium.com/fleetdm', 'GET /apply': 'https://fleet-device-management.breezy.hr', // ╔╦╗╦╔═╗╔═╗ ╦═╗╔═╗╔╦╗╦╦═╗╔═╗╔═╗╔╦╗╔═╗ ┬ ╔╦╗╔═╗╦ ╦╔╗╔╦ ╔═╗╔═╗╔╦╗╔═╗ // ║║║║╚═╗║ ╠╦╝║╣ ║║║╠╦╝║╣ ║ ║ ╚═╗ ┌┼─ ║║║ ║║║║║║║║ ║ ║╠═╣ ║║╚═╗ // ╩ ╩╩╚═╝╚═╝ ╩╚═╚═╝═╩╝╩╩╚═╚═╝╚═╝ ╩ ╚═╝ └┘ ═╩╝╚═╝╚╩╝╝╚╝╩═╝╚═╝╩ ╩═╩╝╚═╝ // Convenience '/pricing': '/get-started', '/company': '/company/about', '/support': '/company/contact', '/contact': '/company/contact', '/legal': '/legal/terms', '/terms': '/legal/terms', // '/logout': '/api/v1/account/logout', // Legacy (to avoid breaking links) '/try-fleet': '/get-started', // Sitemap 'GET /sitemap.xml': { action: 'download-sitemap' }, // ╦ ╦╔═╗╔╗ ╦ ╦╔═╗╔═╗╦╔═╔═╗ // ║║║║╣ ╠╩╗╠═╣║ ║║ ║╠╩╗╚═╗ // ╚╩╝╚═╝╚═╝╩ ╩╚═╝╚═╝╩ ╩╚═╝ // … // ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗ // ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗ // ╩ ╩╩ ╩ ╚═╝╝╚╝═╩╝╩ ╚═╝╩╝╚╝ ╩ ╚═╝ // Note that, in this app, these API endpoints may be accessed using the `Cloud.*()` methods // from the Parasails library, or by using those method names as the `action` in . 'POST /api/v1/deliver-contact-form-message': { action: 'deliver-contact-form-message' }, };