diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 15:31:55 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-08-02 15:31:55 +0200 |
commit | 9507e6a3ee7303a74f9c36b8d87cd0101c26d313 (patch) | |
tree | 87ff224fdfc363a6ec0bb1c30ea76f180985c47b /appinfo | |
parent | 27c7c7773eaaa0aa15fbf5bffeee501941d0d339 (diff) |
make cron updater optional, created updater class for better updating handling, created a route for the api to clean up old stuff
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/routes.php | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |