diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/newsapi.php | 15 |
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(); } |