This is where a controller is to be used.
For the time being have a look at the controller within core lost password. 

Ajax delete -> Google is your friend

-------- Ursprüngliche Nachricht --------
Von: Christopher <notifications@github.com> 
Datum:  
An: owncloud/core <core@noreply.github.com> 
Cc: Thomas Müller <thomas.mueller@tmit.eu> 
Betreff: Re: [core] OC Avatars (#4506) 
 
In settings/routes.php:

> @@ -68,3 +68,7 @@
>  	->actionInclude('settings/ajax/setsecurity.php');
>  $this->create('isadmin', '/settings/js/isadmin.js')
>  	->actionInclude('settings/js/isadmin.php');
> +$this->create('settings_ajax_setavatarmode', '/settings/ajax/setavatarmode.php')
The setavatar.php can't be factored into avatar.php, as this is way different functionality.
How do I do DELETE requests in js?

—
Reply to this email directly or view it on GitHub.