Bug: Use v2 reports instead of v1 reports (#843)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* global axios */
|
||||
|
||||
const API_VERSION = `/api/v1`;
|
||||
const DEFAULT_API_VERSION = 'v1';
|
||||
|
||||
class ApiClient {
|
||||
constructor(resource, options = {}) {
|
||||
this.apiVersion = API_VERSION;
|
||||
this.apiVersion = `/api/${options.apiVersion || DEFAULT_API_VERSION}`;
|
||||
this.options = options;
|
||||
this.resource = resource;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user