mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-22 17:10:30 +00:00
18 lines
427 B
TypeScript
18 lines
427 B
TypeScript
/**
|
|
* Defines the root path for wherehows front-end api requests
|
|
* @type {string}
|
|
*/
|
|
export const ApiRoot = '/api/v1';
|
|
|
|
/**
|
|
* Defines the literal possible string enum values for the an api response status
|
|
* @type {string}
|
|
*/
|
|
export enum ApiStatus {
|
|
OK = 'ok',
|
|
// Adds support for success response used in api's like /comments, will refactored to use ok
|
|
SUCCESS = 'success',
|
|
FAILED = 'failed',
|
|
ERROR = 'error'
|
|
}
|