Created
March 14, 2022 19:13
-
-
Save susimsek/37352c944b4643837d407063345775fa to your computer and use it in GitHub Desktop.
React Hateoas Api Call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const deleteCapability = (deleteLink) => { | |
return instance.delete(deleteLink); | |
} | |
export const addCapability = (capability, postLink) => { | |
return instance.post(postLink, capability); | |
} | |
export const updateCapability = (capability, updateLink) => { | |
return instance.put(updateLink, capability); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment