diff --git a/package.json b/package.json index 37f8fdf..e944201 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@backengine/codegen", - "version": "1.0.13", + "version": "1.0.14", "description": "Generate code for Backengine projects.", "bin": "build/index.js", "files": [ diff --git a/src/hooks/view.ts b/src/hooks/view.ts index da45225..7b99aff 100644 --- a/src/hooks/view.ts +++ b/src/hooks/view.ts @@ -10,7 +10,7 @@ export type ViewsResponse = const parseViewNames = async (): Promise => { const response = await axios.get( - `${process.env.BACKENGINE_BASE_URL}/api/v1/projects/${process.env.BACKENGINE_PROJECT_ID}/pg-meta/tables`, + `${process.env.BACKENGINE_BASE_URL}/api/v1/projects/${process.env.BACKENGINE_PROJECT_ID}/pg-meta/views`, { headers: { Authorization: `Bearer ${process.env.BACKENGINE_API_KEY}`,