Moving 'self' function from AuthAPI to AccountAPI
This function will be used within Account testing
This commit is contained in:
parent
fe9dded2ab
commit
2e827bcc8e
|
@ -114,4 +114,10 @@ export default class AccountAPI extends BaseAPI {
|
|||
})
|
||||
}, opts)
|
||||
}
|
||||
|
||||
async self(opts: APIRequestOpts = { status: 200 }) {
|
||||
return this.doRequest(() => {
|
||||
return this.client.get(`/api/auth/self`)
|
||||
}, opts)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,10 +65,4 @@ export default class AuthAPI extends BaseAPI {
|
|||
})
|
||||
}, opts)
|
||||
}
|
||||
|
||||
async self(opts: APIRequestOpts = { status: 200 }) {
|
||||
return this.doRequest(() => {
|
||||
return this.client.get(`/api/auth/self`)
|
||||
}, opts)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue