mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-16 02:03:42 +08:00
feat(request): Add APIRoot as an option to Nylas API Request
This commit is contained in:
parent
011d5e90a9
commit
59b5c2d960
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import NylasAPI from './nylas-api'
|
|||
export default class NylasAPIRequest {
|
||||
constructor(api, options) {
|
||||
const defaults = {
|
||||
url: `${api.APIRoot}${options.path}`,
|
||||
url: `${options.APIRoot || api.APIRoot}${options.path}`,
|
||||
method: 'GET',
|
||||
json: true,
|
||||
timeout: 15000,
|
||||
|
|
Loading…
Reference in a new issue