From 9507e6a3ee7303a74f9c36b8d87cd0101c26d313 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 2 Aug 2013 15:31:55 +0200 Subject: make cron updater optional, created updater class for better updating handling, created a route for the api to clean up old stuff --- appinfo/routes.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'appinfo') diff --git a/appinfo/routes.php b/appinfo/routes.php index 25eb04dc2..d60f63424 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -233,6 +233,12 @@ $this->create('news_api_version', '/api/v1-2/version')->get()->action( } ); +$this->create('news_api_cleanup', '/api/v1-2/cleanUp')->get()->action( + function($params) { + return App::main('NewsAPI', 'cleanUp', $params, new DIContainer()); + } +); + /** * Folder API */ -- cgit v1.2.3