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-06-21 21:40:15 +00:00
|
|
|
'GET /install': 'https://github.com/fleetdm/fleet/blob/main/README.md', // « FUTURE: When ready, bring back { action: 'view-get-started' }
|
2021-07-09 05:58:40 +00:00
|
|
|
'/docs': 'https://github.com/fleetdm/fleet/tree/main/docs',
|
2021-05-26 08:24:38 +00:00
|
|
|
'/hall-of-fame': 'https://github.com/fleetdm/fleet/pulse',
|
2021-07-09 05:58:40 +00:00
|
|
|
'/company/about': '/handbook', // FUTURE: brief "about" page explaining the origins of the company
|
|
|
|
'/handbook': 'https://github.com/fleetdm/fleet/tree/main/handbook',
|
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-06-18 20:58:21 +00:00
|
|
|
'/contribute': 'https://github.com/fleetdm/fleet/tree/main/docs/3-Contributing',
|
2021-05-26 08:24:38 +00:00
|
|
|
'/company/stewardship': 'https://github.com/fleetdm/fleet', // FUTURE: page about how we approach open source and our commitments to the community
|
2021-07-09 05:58:40 +00:00
|
|
|
'/legal/terms': 'https://docs.google.com/document/d/1OM6YDVIs7bP8wg6iA3VG13X086r64tWDqBSRudG4a0Y/edit',
|
|
|
|
'/security': 'https://github.com/fleetdm/fleet/security/policy',
|
|
|
|
|
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',
|
2021-07-09 05:58:40 +00:00
|
|
|
'/documentation': '/docs',
|
2020-12-02 20:48:03 +00:00
|
|
|
'/company': '/company/about',
|
|
|
|
'/support': '/company/contact',
|
|
|
|
'/contact': '/company/contact',
|
|
|
|
'/legal': '/legal/terms',
|
|
|
|
'/terms': '/legal/terms',
|
2021-07-09 05:58:40 +00:00
|
|
|
|
|
|
|
// Sitemap
|
|
|
|
'GET /sitemap.xml': { action: 'download-sitemap' },
|
|
|
|
|
|
|
|
// Blog
|
|
|
|
'/blog': 'https://blog.fleetdm.com',
|
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
|
|
|
|
2020-12-02 20:48:03 +00:00
|
|
|
// ╦ ╦╔═╗╔╗ ╦ ╦╔═╗╔═╗╦╔═╔═╗
|
|
|
|
// ║║║║╣ ╠╩╗╠═╣║ ║║ ║╠╩╗╚═╗
|
|
|
|
// ╚╩╝╚═╝╚═╝╩ ╩╚═╝╚═╝╩ ╩╚═╝
|
2021-07-07 02:22:02 +00:00
|
|
|
'POST /api/v1/webhooks/receive-usage-analytics': { action: 'receive-usage-analytics', csrf: false },
|
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
|
|
|
|
|
|
|
};
|