mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
7bb202f961
* /sandbox/queries becomes /queries, etc * Publish fleetdm.com/queries Expose query library routes the rest of the way, move remediation data sanitization to the point of entry, and update query library to match (pairing w/ @gillespi314) * Fix accidental commit of sailsrc (again)
72 lines
3.6 KiB
JavaScript
Vendored
72 lines
3.6 KiB
JavaScript
Vendored
/**
|
|
* 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/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
|
|
|
|
'GET /queries': { action: 'view-query-library' },
|
|
'GET /queries/:slug': { action: 'view-query-detail' },
|
|
|
|
'/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
|
|
'/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 <ajax-form>.
|
|
'POST /api/v1/deliver-contact-form-message': { action: 'deliver-contact-form-message' },
|
|
|
|
};
|