You can only use GET and POST for xDomainRequests. Is there a way I can create a mapping that can also take an optional param to determine which webmethod to use? For example I have:
@RequestMapping(method = RequestMethod.PUT)
@ResponseBody
public SomeObject someUpdateFunction(@RequestBody SomeObject objectToUpdate)
{
...
}
@RequestMapping(method = RequestMethod.POST)
@ResponseBody
public SomeObject someCreateFunction(@RequestBody SomeObject objectToUpdate)
{
...
}
Is there a way that I can somehow map an XDR to the PUT method? I obviously don't want to add the POST option to someUpdateFunction()
.