Hi Guys,
in my routes i stuck to DELETE verb for cruD actions. I created a javascript function doing a fetch() sending the DELETE method. That works fine. However I would like to try out the route modifiers [sync] and [ajax] but that does not work.
When this route is requested i get a '405 - method not allowed'
DELETE /omnia/@model/@item [ajax] = Controllers\Omnia\Crud->destroy
when i omit the [ajax] it works. This route is fine.
DELETE /omnia/@model/@item = Controllers\Omnia\Crud->destroy
The routes are stored in an ini file. Any idea why this doesn't work? The documentation does not provide clear guidelines on combining DELETE and [ajax]. Only GET and POST are specifically mentioned.
Thanks