2020-12-02 20:48:03 +00:00
|
|
|
/**
|
|
|
|
* 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 = {
|
|
|
|
|
|
|
|
// ╦ ╦╔═╗╔╗ ╔═╗╔═╗╔═╗╔═╗╔═╗
|
|
|
|
// ║║║║╣ ╠╩╗╠═╝╠═╣║ ╦║╣ ╚═╗
|
|
|
|
// ╚╩╝╚═╝╚═╝╩ ╩ ╩╚═╝╚═╝╚═╝
|
2021-04-27 18:08:33 +00:00
|
|
|
'GET /': { action: 'view-homepage-or-redirect', locals: { isHomepage: true } },
|
2021-05-26 08:24:38 +00:00
|
|
|
'GET /company/contact': { action: 'view-contact' },
|
|
|
|
'GET /get-started': { action: 'view-pricing' },
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-26 08:24:38 +00:00
|
|
|
'GET /install': 'https://github.com/fleetdm/fleet/blob/master/README.md', // « FUTURE: When ready, bring back { action: 'view-get-started' }
|
|
|
|
'/documentation': 'https://github.com/fleetdm/fleet/tree/master/docs',
|
|
|
|
'/hall-of-fame': 'https://github.com/fleetdm/fleet/pulse',
|
|
|
|
'/company/about': '/blog', // FUTURE: brief "about" page explaining the origins of the company
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-28 22:51:47 +00:00
|
|
|
'GET /queries': { action: 'view-query-library' },
|
|
|
|
'GET /queries/:slug': { action: 'view-query-detail' },
|
|
|
|
|
2021-05-26 08:24:38 +00:00
|
|
|
'/contribute': 'https://github.com/fleetdm/fleet/tree/master/docs/4-Contribution',
|
|
|
|
'/company/stewardship': 'https://github.com/fleetdm/fleet', // FUTURE: page about how we approach open source and our commitments to the community
|
2021-01-15 00:50:18 +00:00
|
|
|
'/legal/terms': 'https://docs.google.com/document/d/1OM6YDVIs7bP8wg6iA3VG13X086r64tWDqBSRudG4a0Y/edit',
|
2021-05-06 02:27:58 +00:00
|
|
|
'/security': 'https://github.com/fleetdm/fleet/security/policy',
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-26 08:24:38 +00:00
|
|
|
'/blog': 'https://medium.com/fleetdm',
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-26 08:24:38 +00:00
|
|
|
'GET /apply': 'https://fleet-device-management.breezy.hr',
|
2020-12-02 20:48:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
// ╔╦╗╦╔═╗╔═╗ ╦═╗╔═╗╔╦╗╦╦═╗╔═╗╔═╗╔╦╗╔═╗ ┬ ╔╦╗╔═╗╦ ╦╔╗╔╦ ╔═╗╔═╗╔╦╗╔═╗
|
|
|
|
// ║║║║╚═╗║ ╠╦╝║╣ ║║║╠╦╝║╣ ║ ║ ╚═╗ ┌┼─ ║║║ ║║║║║║║║ ║ ║╠═╣ ║║╚═╗
|
|
|
|
// ╩ ╩╩╚═╝╚═╝ ╩╚═╚═╝═╩╝╩╩╚═╚═╝╚═╝ ╩ ╚═╝ └┘ ═╩╝╚═╝╚╩╝╝╚╝╩═╝╚═╝╩ ╩═╩╝╚═╝
|
2021-05-06 02:27:58 +00:00
|
|
|
|
|
|
|
// Convenience
|
2021-05-14 08:25:40 +00:00
|
|
|
'/pricing': '/get-started',
|
2020-12-02 20:48:03 +00:00
|
|
|
'/company': '/company/about',
|
|
|
|
'/support': '/company/contact',
|
|
|
|
'/contact': '/company/contact',
|
|
|
|
'/legal': '/legal/terms',
|
|
|
|
'/terms': '/legal/terms',
|
2021-05-06 02:27:58 +00:00
|
|
|
// '/logout': '/api/v1/account/logout',
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-06 02:27:58 +00:00
|
|
|
// Legacy (to avoid breaking links)
|
|
|
|
'/try-fleet': '/get-started',
|
2020-12-02 20:48:03 +00:00
|
|
|
|
2021-05-26 08:24:38 +00:00
|
|
|
// Sitemap
|
|
|
|
'GET /sitemap.xml': { action: 'download-sitemap' },
|
|
|
|
|
|
|
|
|
2020-12-02 20:48:03 +00:00
|
|
|
// ╦ ╦╔═╗╔╗ ╦ ╦╔═╗╔═╗╦╔═╔═╗
|
|
|
|
// ║║║║╣ ╠╩╗╠═╣║ ║║ ║╠╩╗╚═╗
|
|
|
|
// ╚╩╝╚═╝╚═╝╩ ╩╚═╝╚═╝╩ ╩╚═╝
|
|
|
|
// …
|
|
|
|
|
|
|
|
|
|
|
|
// ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗
|
|
|
|
// ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗
|
|
|
|
// ╩ ╩╩ ╩ ╚═╝╝╚╝═╩╝╩ ╚═╝╩╝╚╝ ╩ ╚═╝
|
|
|
|
// 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 <ajax-form>.
|
2021-05-06 18:46:52 +00:00
|
|
|
'POST /api/v1/deliver-contact-form-message': { action: 'deliver-contact-form-message' },
|
2020-12-02 20:48:03 +00:00
|
|
|
|
|
|
|
};
|