mini refactor on routes.json and crudAddressObervations

This commit is contained in:
Carlos Jimenez 2018-02-14 14:24:14 +01:00
parent 61cd4acca5
commit 6e1d3135d5
2 changed files with 19 additions and 13 deletions

View File

@ -15,16 +15,19 @@
"state": "item.index",
"component": "vn-item-list",
"acl": ["developer"]
}, {
},
{
"url": "/create",
"state": "item.create",
"component": "vn-item-create"
}, {
},
{
"url": "/:id",
"state": "item.card",
"abstract": true,
"component": "vn-item-card"
}, {
},
{
"url" : "/data",
"state": "item.card.data",
"component": "vn-item-data",
@ -35,7 +38,8 @@
"description": "Basic data",
"icon": "folder"
}
},{
},
{
"url" : "/tags",
"state": "item.card.tags",
"component": "vn-item-tags",
@ -46,7 +50,8 @@
"description": "Tags",
"icon": "folder"
}
},{
},
{
"url" : "/history",
"state": "item.card.history",
"component": "vn-item-history",
@ -57,7 +62,8 @@
"description": "History",
"icon": "folder"
}
},{
},
{
"url" : "/niche",
"state": "item.card.niche",
"component": "vn-item-niche",
@ -68,7 +74,8 @@
"description": "Niche",
"icon": "folder"
}
},{
},
{
"url" : "/botanical",
"state": "item.card.botanical",
"component": "vn-item-botanical",
@ -79,7 +86,8 @@
"description": "Botanical",
"icon": "folder"
}
},{
},
{
"url" : "/picture",
"state": "item.card.picture",
"component": "vn-item-picture",
@ -90,9 +98,10 @@
"description": "Picture",
"icon": "folder"
}
}, {
},
{
"url" : "/barcode",
"state": "item.card.barcode",
"state": "item.card.itemBarcode",
"component": "vn-item-barcode",
"params": {
"item": "$ctrl.item"

View File

@ -11,9 +11,6 @@ module.exports = Self => {
http: {source: 'body'}
}
],
returns: {
arg: 'sumAmount'
},
http: {
path: `/crudAddressObservations`,
verb: 'post'