mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
b1945b2128
Closes: https://github.com/fleetdm/confidential/issues/4057 Changes: - Added the contents of the fleet-vulnerability-dashboard repo to ee/vulnerability-dashboard - Added a github workflow to deploy the vulnerability dashboard on Heroku - Added a github workflow to test changes to the vulnerability-dashboard - Updated the website's custom configuration to enable auto-approvals/review requests to files in the ee/vulnerability-dashboard folder
80 lines
4.9 KiB
JavaScript
80 lines
4.9 KiB
JavaScript
/**
|
|
* 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' },
|
|
'GET /dashboard': { action: 'dashboard/view-welcome' },
|
|
'GET /vulnerability-list': { action: 'dashboard/view-vulnerability-list' },
|
|
'GET /patch-progress': { action: 'view-patch-progress' },
|
|
|
|
|
|
// 'GET /faq': { action: 'view-faq' },
|
|
// 'GET /legal/terms': { action: 'legal/view-terms' },
|
|
// 'GET /legal/privacy': { action: 'legal/view-privacy' },
|
|
// 'GET /contact': { action: 'view-contact' },
|
|
|
|
// 'GET /signup': { action: 'entrance/view-signup' },
|
|
// 'GET /email/confirm': { action: 'entrance/confirm-email' },
|
|
// 'GET /email/confirmed': { action: 'entrance/view-confirmed-email' },
|
|
|
|
'GET /login': { action: 'entrance/view-login' },
|
|
// 'GET /password/forgot': { action: 'entrance/view-forgot-password' },
|
|
// 'GET /password/new': { action: 'entrance/view-new-password' },
|
|
|
|
'GET /account': { action: 'account/view-account-overview' },
|
|
'GET /account/password': { action: 'account/view-edit-password' },
|
|
'GET /account/profile': { action: 'account/view-edit-profile' },
|
|
|
|
|
|
// ╔╦╗╦╔═╗╔═╗ ╦═╗╔═╗╔╦╗╦╦═╗╔═╗╔═╗╔╦╗╔═╗ ┬ ╔╦╗╔═╗╦ ╦╔╗╔╦ ╔═╗╔═╗╔╦╗╔═╗
|
|
// ║║║║╚═╗║ ╠╦╝║╣ ║║║╠╦╝║╣ ║ ║ ╚═╗ ┌┼─ ║║║ ║║║║║║║║ ║ ║╠═╣ ║║╚═╗
|
|
// ╩ ╩╩╚═╝╚═╝ ╩╚═╚═╝═╩╝╩╩╚═╚═╝╚═╝ ╩ ╚═╝ └┘ ═╩╝╚═╝╚╩╝╝╚╝╩═╝╚═╝╩ ╩═╩╝╚═╝
|
|
// '/terms': '/legal/terms',
|
|
'GET /logout': '/api/v1/account/logout',
|
|
'/': '/dashboard',
|
|
'/welcome': '/dashboard',
|
|
|
|
// ╦ ╦╔═╗╔╗ ╦ ╦╔═╗╔═╗╦╔═╔═╗
|
|
// ║║║║╣ ╠╩╗╠═╣║ ║║ ║╠╩╗╚═╗
|
|
// ╚╩╝╚═╝╚═╝╩ ╩╚═╝╚═╝╩ ╩╚═╝
|
|
// …
|
|
|
|
|
|
// ╔═╗╔═╗╦ ╔═╗╔╗╔╔╦╗╔═╗╔═╗╦╔╗╔╔╦╗╔═╗
|
|
// ╠═╣╠═╝║ ║╣ ║║║ ║║╠═╝║ ║║║║║ ║ ╚═╗
|
|
// ╩ ╩╩ ╩ ╚═╝╝╚╝═╩╝╩ ╚═╝╩╝╚╝ ╩ ╚═╝
|
|
// 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>.
|
|
'/api/v1/account/logout': { action: 'account/logout' },
|
|
'PUT /api/v1/account/update-password': { action: 'account/update-password' },
|
|
'PUT /api/v1/account/update-profile': { action: 'account/update-profile' },
|
|
// 'PUT /api/v1/account/update-billing-card': { action: 'account/update-billing-card' },
|
|
'PUT /api/v1/entrance/login': { action: 'entrance/login' },
|
|
// 'POST /api/v1/entrance/signup': { action: 'entrance/signup' },
|
|
'POST /api/v1/entrance/send-password-recovery-email': { action: 'entrance/send-password-recovery-email' },
|
|
'POST /api/v1/entrance/update-password-and-login': { action: 'entrance/update-password-and-login' },
|
|
'GET /entrance/signup-okta-user-or-redirect': { action: 'entrance/signup-okta-user-or-redirect' },
|
|
// 'POST /api/v1/deliver-contact-form-message': { action: 'deliver-contact-form-message' },
|
|
// 'POST /api/v1/observe-my-session': { action: 'observe-my-session', hasSocketFeatures: true },
|
|
|
|
'GET /api/v1/get-vulnerabilities': { action: 'get-vulnerabilities', hasSocketFeatures: true },
|
|
'GET /api/v1/get-remediation-timeline': { action: 'get-remediation-timeline', hasSocketFeatures: true },
|
|
'GET /download-vulnerabilities-csv': { action: 'download-vulnerabilities-csv'},
|
|
'GET /download-one-vulnerability-csv': { action: 'download-one-vulnerability-csv'},
|
|
'POST /api/v1/set-compliant-versions': { action: 'set-compliant-versions' },
|
|
'GET /api/v1/update-priority-vulnerabilities': { action: 'update-priority-vulnerabilities' },
|
|
'GET /api/v1/get-patch-progress-for-a-single-team': { action: 'get-patch-progress-for-a-single-team' },
|
|
'GET /download-unpatched-hosts-csv': { action: 'download-unpatched-hosts-csv'},
|
|
};
|