spyke
spyke copied to clipboard
Enable params on DELETE via config
What
Allow custom params on DELETE via config.
Why
The https://github.com/balvig/spyke/pull/157 reverted the possibility of passing params on DELETE action. However, our app uses shard databases and requires some extra params to identify which shard will be hit. In this change, we allow custom params on DELETE via config.
hey @balvig, could you review and consider this change 🥺
You can still use url params like so:
DeleteBranch.request(:delete, 'projects/projectname/repos/reponame/branches?name=asd')