working and no errors on front or back ends

This commit is contained in:
2021-07-08 03:15:36 -05:00
parent 9869125965
commit 7b18b0842a
12 changed files with 157 additions and 41 deletions

View File

@ -22,11 +22,11 @@ const URL = {
},
'delete': (view: EndpointDef) => {
// TODO: needs the params added to select the right one (id)
return `${view.component}`;
return `${view.component}/:${view.component}_id`;
},
'item': (view: EndpointDef) => {
// TODO: needs the params added to select the right one (id)
return `${view.component}`;
return `${view.component}/:${view.component}_id`;
},
'list': (view: EndpointDef) => {
return `${pluralize(view.component)}`;
@ -36,7 +36,7 @@ const URL = {
},
'update': (view: EndpointDef) => {
// TODO: needs the params added to select the right one (id)
return `${view.component}`;
return `${view.component}/:${view.component}_id`;
},
}