mercredi 2 juin 2021

Different access name for same model in Ember

i have a model in ember , called "post" ,so when i use store to get/delete data the request will be "/post" , is it possible to have another namespace like "/tenant" to access same model post ?

like post.delete() should send DELETE backend response as "/tenant/#id" instead of "/post/#id" . i am changing my backend api so want to change the frontend end point without changing the model name in frontend ,




Aucun commentaire:

Enregistrer un commentaire