]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add update route to core
authorLukas Reschke <lukas@owncloud.com>
Tue, 19 Aug 2014 13:40:08 +0000 (15:40 +0200)
committerLukas Reschke <lukas@owncloud.com>
Tue, 19 Aug 2014 13:40:08 +0000 (15:40 +0200)
core/ajax/update.php
core/routes.php

index 698614c975f2a865068d5e49124ab9a62ad1a2f7..70696e98eefebb20b0c87dfd6ef3cfad1e4e45fe 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 set_time_limit(0);
-require_once '../../lib/base.php';
 
 if (OC::checkUpgrade(false)) {
        $l = new \OC_L10N('core');
index cf74521a7463c570e4fd06b730f8106a9c5d9266..ff79c450508a0303a74c02ce40d7596502cbf7e1 100644 (file)
@@ -80,7 +80,8 @@ $this->create('core_ajax_preview', '/core/preview')
        ->actionInclude('core/ajax/preview.php');
 $this->create('core_ajax_preview', '/core/preview.png')
        ->actionInclude('core/ajax/preview.php');
-
+$this->create('core_ajax_update', '/core/ajax/update.php')
+       ->actionInclude('core/ajax/update.php');
 // Avatar routes
 $this->create('core_avatar_get_tmp', '/avatar/tmp')
        ->get()