Moving 'self' function from AuthAPI to AccountAPI

This function will be used within Account testing
This commit is contained in:
Mitch-Budibase 2023-07-31 18:01:40 +01:00
parent fe9dded2ab
commit 2e827bcc8e
2 changed files with 6 additions and 6 deletions

View File

@ -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)
}
}

View File

@ -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)
}
}