feat: nested read api

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
Pranav C
2021-07-28 17:39:22 +05:30
parent 4621a77ca5
commit 4a8282bace
6 changed files with 88 additions and 12 deletions

View File

@@ -11,8 +11,8 @@ export default class RestApi {
return data.data
}
async read(id) {
const data = await this.get(`/nc/${this.$ctx.projectId}/api/v1/${this.table}/${id}`)
async read(id, params = {}) {
const data = await this.get(`/nc/${this.$ctx.projectId}/api/v1/${this.table}/${id}`, params)
return data.data
}