1
0
Fork 0
mirror of synced 2024-06-01 10:09:48 +12:00

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