insomnia/app/lib/constants.js
2016-05-10 22:43:51 -07:00

29 lines
809 B
JavaScript

// Global Stuff
export const LOCALSTORAGE_KEY = 'insomnia.state';
export const DB_PERSIST_INTERVAL = 1000;
// HTTP Methods
export const METHOD_GET = 'GET';
export const METHOD_PUT = 'PUT';
export const METHOD_POST = 'POST';
export const METHOD_PATCH = 'PATCH';
export const METHOD_DELETE = 'DELETE';
export const METHOD_OPTIONS = 'OPTIONS';
export const METHOD_HEAD = 'HEAD';
export const METHODS = [
METHOD_GET,
METHOD_PUT,
METHOD_PATCH,
METHOD_POST,
METHOD_DELETE,
METHOD_OPTIONS,
METHOD_HEAD
];
export const MODAL_WORKSPACE_RENAME = 'workspace.update.name';
export const MODAL_REQUEST_GROUP_RENAME = 'requestgroup.update.name';
export const MODAL_REQUEST_RENAME = 'request.update.name';
export const MODAL_ENVIRONMENT_EDITOR = 'environment.edit';
export const MODAL_SETTINGS = 'settings';