remove unneeded appPackage route
This commit is contained in:
parent
4d4a1bc5b3
commit
3c1a3cc759
|
@ -5,7 +5,7 @@
|
||||||
import Title from "../TabTitle.svelte"
|
import Title from "../TabTitle.svelte"
|
||||||
|
|
||||||
async function updateApplication(data) {
|
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()
|
const app = await response.json()
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
state = {
|
state = {
|
||||||
|
|
|
@ -12,7 +12,7 @@ router
|
||||||
authorized(BUILDER),
|
authorized(BUILDER),
|
||||||
controller.fetchAppPackage
|
controller.fetchAppPackage
|
||||||
)
|
)
|
||||||
.put("/api/:applicationId/appPackage", authorized(BUILDER), controller.update)
|
.put("/api/:applicationId", authorized(BUILDER), controller.update)
|
||||||
.post("/api/applications", authorized(BUILDER), controller.create)
|
.post("/api/applications", authorized(BUILDER), controller.create)
|
||||||
|
|
||||||
module.exports = router
|
module.exports = router
|
||||||
|
|
Loading…
Reference in New Issue