From 69e5086388d448c7cd8490ce64fd8e8732da4347 Mon Sep 17 00:00:00 2001 From: kevmodrome Date: Thu, 2 Jul 2020 11:30:36 +0200 Subject: [PATCH] remove unneeded appPackage route --- packages/builder/src/components/settings/tabs/General.svelte | 2 +- packages/server/src/api/routes/application.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/settings/tabs/General.svelte b/packages/builder/src/components/settings/tabs/General.svelte index fbfb5f0136..be4acacc24 100644 --- a/packages/builder/src/components/settings/tabs/General.svelte +++ b/packages/builder/src/components/settings/tabs/General.svelte @@ -5,7 +5,7 @@ import Title from "../TabTitle.svelte" async function updateApplication(data) { - const response = await api.put(`/api/${$store.appId}/appPackage`, data) + const response = await api.put(`/api/${$store.appId}`, data) const app = await response.json() store.update(state => { state = { diff --git a/packages/server/src/api/routes/application.js b/packages/server/src/api/routes/application.js index 013dd6160d..2843770b46 100644 --- a/packages/server/src/api/routes/application.js +++ b/packages/server/src/api/routes/application.js @@ -12,7 +12,7 @@ router authorized(BUILDER), controller.fetchAppPackage ) - .put("/api/:applicationId/appPackage", authorized(BUILDER), controller.update) + .put("/api/:applicationId", authorized(BUILDER), controller.update) .post("/api/applications", authorized(BUILDER), controller.create) module.exports = router