api: add catchupFeed
This commit is contained in:
parent
8fd8b4b132
commit
ca75c2e2fd
|
@ -388,6 +388,16 @@
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "catchupFeed":
|
||||||
|
$feed_id = db_escape_string($_REQUEST["feed_id"]);
|
||||||
|
$is_cat = db_escape_string($_REQUEST["category"]);
|
||||||
|
|
||||||
|
catchup_feed($link, $feed, $is_cat);
|
||||||
|
|
||||||
|
print json_encode(array("status" => "OK"));
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case "getPref":
|
case "getPref":
|
||||||
$pref_name = db_escape_string($_REQUEST["pref_name"]);
|
$pref_name = db_escape_string($_REQUEST["pref_name"]);
|
||||||
print json_encode(array("value" => get_pref($link, $pref_name)));
|
print json_encode(array("value" => get_pref($link, $pref_name)));
|
||||||
|
|
Loading…
Reference in New Issue