mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-17 04:26:58 +08:00
25 lines
643 B
JavaScript
25 lines
643 B
JavaScript
import { ajax } from "discourse/lib/ajax";
|
|
|
|
export default {
|
|
show() {
|
|
return ajax("/admin/plugins/rss_polling/feed_settings.json");
|
|
},
|
|
|
|
updateFeed(feedSetting) {
|
|
return ajax("/admin/plugins/rss_polling/feed_settings", {
|
|
type: "PUT",
|
|
contentType: "application/json",
|
|
processData: false,
|
|
data: JSON.stringify({ feed_setting: feedSetting }),
|
|
});
|
|
},
|
|
|
|
deleteFeed(feedSetting) {
|
|
return ajax("/admin/plugins/rss_polling/feed_settings", {
|
|
type: "DELETE",
|
|
contentType: "application/json",
|
|
processData: false,
|
|
data: JSON.stringify({ feed_setting: feedSetting }),
|
|
});
|
|
},
|
|
};
|