remove unneeded appPackage route

This commit is contained in:
kevmodrome 2020-07-02 11:30:36 +02:00
parent 4d4a1bc5b3
commit 3c1a3cc759
2 changed files with 2 additions and 2 deletions

View File

@ -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 = {

View File

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