working and no errors on front or back ends
This commit is contained in:
@ -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`;
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user