add ability to get specific preset, defaulting to all

This commit is contained in:
tinect
2019-11-14 22:07:49 +01:00
parent f41c2a688a
commit 9f754c95b9
4 changed files with 33 additions and 18 deletions

View File

@@ -3,7 +3,7 @@ var sieve_presetsElem = document.getElementById("sieve_presets");
if (sieve_presetsElem) {
$.ajax({
dataType: 'json',
url: '/api/v1/get/presets/mailbox-sieve',
url: '/api/v1/get/presets-mailbox-sieve/all',
jsonp: false,
complete: function (data) {
if (data.responseText !== '{}') {