summaryrefslogtreecommitdiffstats
path: root/core/routes.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-02-26 19:34:46 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-02-26 19:34:46 +0100
commit4e553480540a36cf14a107e65e2bc4d4d9f1a2e6 (patch)
treedbeab923d666cbba1327731339adffb9dd2fe402 /core/routes.php
parentb987c76d16a6bdaf931776763dea18915c99e804 (diff)
downloadnextcloud-server-4e553480540a36cf14a107e65e2bc4d4d9f1a2e6.tar.gz
nextcloud-server-4e553480540a36cf14a107e65e2bc4d4d9f1a2e6.zip
implemented a heartbeat request which is calls the server every 15 minutes to prevent a session timeout
Diffstat (limited to 'core/routes.php')
-rw-r--r--core/routes.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index 2527816b662..be19b66bf72 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -69,3 +69,8 @@ $this->create('app_script', '/apps/{app}/{file}')
->defaults(array('file' => 'index.php'))
->requirements(array('file' => '.*.php'))
->action('OC', 'loadAppScriptFile');
+
+// used for heartbeat
+$this->create('heartbeat', '/heartbeat')->action(function(){
+ // do nothing
+}); \ No newline at end of file