summaryrefslogtreecommitdiffstats
path: root/external/newsapi.php
diff options
context:
space:
mode:
Diffstat (limited to 'external/newsapi.php')
-rw-r--r--external/newsapi.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/external/newsapi.php b/external/newsapi.php
index 1121f3400..51a2d9cf2 100644
--- a/external/newsapi.php
+++ b/external/newsapi.php
@@ -64,8 +64,19 @@ class NewsAPI extends Controller {
* @Ajax
* @API
*/
- public function cleanUp() {
- $this->updater->cleanUp();
+ public function beforeUpdate() {
+ $this->updater->beforeUpdate();
+ return new JSONResponse();
+ }
+
+
+ /**
+ * @CSRFExemption
+ * @Ajax
+ * @API
+ */
+ public function afterUpdate() {
+ $this->updater->afterUpdate();
return new JSONResponse();
}