change switch option from put to post request

to be compliant with rest API on non RESTful call.
Merge pull request #97 from folieadrien/routing-changes

change switch option from put to post request