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

View File

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