fleet/frontend/kolide/endpoints.js
Mike Stone f099b2ae22 Create packs (#516)
* Creates new PackComposerPage at /packs/new

* Creates PackForm component

* Adds PackForm to PackComposerPage

* Creates QueriesListItem

* Creates QueriesList

* Creates QueriesListWrapper

* Get all queries when the Packs Composer Page loads

* Form HOC handles updates to formData prop

* Creates form to configure scheduled queries

* QueriesListWrapper renders ConfigurePackQueryForm

* search queries input filters queries list

* Empty state text

* create pack when user submits the new pack form

* Adds Edit pack page to /packs/:pack_id/edit

* API client - get scheduled queries for a pack

* API client - create scheduled query

* Redux config for scheduled queries

* Remove scheduled queries from packs

* Add labels to pack on create

* Add disabled state to the select targets dropdown

* Adds edit route and pushes to new route on edit click

* Adds cancel button to edit pack form

* Adds Checkbox that selects all scheduled queries in table
2016-12-21 12:25:54 -05:00

23 lines
672 B
JavaScript

export default {
CONFIG: '/v1/kolide/config',
FORGOT_PASSWORD: '/v1/kolide/forgot_password',
HOSTS: '/v1/kolide/hosts',
INVITES: '/v1/kolide/invites',
LABELS: '/v1/kolide/labels',
LABEL_HOSTS: (id) => {
return `/v1/kolide/labels/${id}/hosts`;
},
LOGIN: '/v1/kolide/login',
LOGOUT: '/v1/kolide/logout',
ME: '/v1/kolide/me',
PACKS: '/v1/kolide/packs',
QUERIES: '/v1/kolide/queries',
RESET_PASSWORD: '/v1/kolide/reset_password',
RUN_QUERY: '/v1/kolide/queries/run',
SCHEDULED_QUERIES: (pack) => {
return `/v1/kolide/packs/${pack.id}/scheduled`;
},
SETUP: '/v1/setup',
TARGETS: '/v1/kolide/targets',
USERS: '/v1/kolide/users',
};