Example #1
0
<?php

/**
 * Copyright (c) 2014 Robin Appelman <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
/** @var $this OC\Route\Router */
// Route for compile AJAX request
//$this->create('files_latexeditor_compile', '/ajax/compile.php')->actionInclude('files_latexeditor/ajax/compile.php');
namespace OCA\Files_Latexeditor\AppInfo;

$app = new Application();
$app->registerRoutes($this, array('routes' => array(['name' => 'Compile#doCompile', 'url' => '/ajax/compile', 'verb' => 'POST'], ['name' => 'LatexStorage#updatefile', 'url' => '/ajax/updatefile', 'verb' => 'POST'])));
Example #2
0
 * @author Morris Jobke <*****@*****.**>
 * @author Ross Nicoll <*****@*****.**>
 * @author Vincent Petry <*****@*****.**>
 *
 * @copyright Copyright (c) 2015, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files_External\Appinfo;

/**
 * @var $this \OC\Route\Router
 **/
$application = new Application();
$application->registerRoutes($this, array('resources' => array('global_storages' => array('url' => '/globalstorages'), 'user_storages' => array('url' => '/userstorages')), 'routes' => array(array('name' => 'Ajax#getSshKeys', 'url' => '/ajax/sftp_key.php', 'verb' => 'POST', 'requirements' => array()))));
$this->create('files_external_dropbox', 'ajax/dropbox.php')->actionInclude('files_external/ajax/dropbox.php');
$this->create('files_external_google', 'ajax/google.php')->actionInclude('files_external/ajax/google.php');
$this->create('files_external_list_applicable', '/applicable')->actionInclude('files_external/ajax/applicable.php');
\OCP\API::register('get', '/apps/files_external/api/v1/mounts', array('\\OCA\\Files\\External\\Api', 'getUserMounts'), 'files_external');
Example #3
0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files\AppInfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'API#getThumbnail', 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', 'verb' => 'GET', 'requirements' => array('file' => '.+')), array('name' => 'API#updateFileTags', 'url' => '/api/v1/files/{path}', 'verb' => 'POST', 'requirements' => array('path' => '.+')), array('name' => 'API#getFilesByTag', 'url' => '/api/v1/tags/{tagName}/files', 'verb' => 'GET', 'requirements' => array('tagName' => '.+')))));
/** @var $this \OC\Route\Router */
$this->create('files_index', '/')->actionInclude('files/index.php');
$this->create('files_ajax_delete', 'ajax/delete.php')->actionInclude('files/ajax/delete.php');
$this->create('files_ajax_download', 'ajax/download.php')->actionInclude('files/ajax/download.php');
$this->create('files_ajax_getstoragestats', 'ajax/getstoragestats.php')->actionInclude('files/ajax/getstoragestats.php');
$this->create('files_ajax_list', 'ajax/list.php')->actionInclude('files/ajax/list.php');
$this->create('files_ajax_move', 'ajax/move.php')->actionInclude('files/ajax/move.php');
$this->create('files_ajax_newfile', 'ajax/newfile.php')->actionInclude('files/ajax/newfile.php');
$this->create('files_ajax_newfolder', 'ajax/newfolder.php')->actionInclude('files/ajax/newfolder.php');
$this->create('files_ajax_rename', 'ajax/rename.php')->actionInclude('files/ajax/rename.php');
$this->create('files_ajax_scan', 'ajax/scan.php')->actionInclude('files/ajax/scan.php');
$this->create('files_ajax_upload', 'ajax/upload.php')->actionInclude('files/ajax/upload.php');
$this->create('download', 'download{file}')->requirements(array('file' => '.*'))->actionInclude('files/download.php');
Example #4
0
<?php

/**
 * Copyright (c) 2012 Bart Visscher <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
namespace OC\Settings;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'MailSettings#setMailSettings', 'url' => '/settings/admin/mailsettings', 'verb' => 'POST'), array('name' => 'MailSettings#storeCredentials', 'url' => '/settings/admin/mailsettings/credentials', 'verb' => 'POST'), array('name' => 'MailSettings#sendTestMail', 'url' => '/settings/admin/mailtest', 'verb' => 'POST'))));
/** @var $this \OCP\Route\IRouter */
// Settings pages
$this->create('settings_help', '/settings/help')->actionInclude('settings/help.php');
$this->create('settings_personal', '/settings/personal')->actionInclude('settings/personal.php');
$this->create('settings_settings', '/settings')->actionInclude('settings/settings.php');
$this->create('settings_users', '/settings/users')->actionInclude('settings/users.php');
$this->create('settings_apps', '/settings/apps')->actionInclude('settings/apps.php');
$this->create('settings_admin', '/settings/admin')->actionInclude('settings/admin.php');
// Settings ajax actions
// users
$this->create('settings_ajax_userlist', '/settings/ajax/userlist')->actionInclude('settings/ajax/userlist.php');
$this->create('settings_ajax_grouplist', '/settings/ajax/grouplist')->actionInclude('settings/ajax/grouplist.php');
$this->create('settings_ajax_everyonecount', '/settings/ajax/geteveryonecount')->actionInclude('settings/ajax/geteveryonecount.php');
$this->create('settings_ajax_createuser', '/settings/ajax/createuser.php')->actionInclude('settings/ajax/createuser.php');
$this->create('settings_ajax_removeuser', '/settings/ajax/removeuser.php')->actionInclude('settings/ajax/removeuser.php');
$this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')->actionInclude('settings/ajax/setquota.php');
$this->create('settings_ajax_creategroup', '/settings/ajax/creategroup.php')->actionInclude('settings/ajax/creategroup.php');
$this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')->actionInclude('settings/ajax/togglegroups.php');
$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')->actionInclude('settings/ajax/togglesubadmins.php');
Example #5
0
<?php

/**
 * ownCloud - impersonate
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Jörn Friedrich Dreyer <*****@*****.**>
 * @copyright Jörn Friedrich Dreyer 2015
 */
namespace OCA\Impersonate\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'settings#impersonate', 'url' => '/user', 'verb' => 'POST'))));
Example #6
0
<?php

/**
 * ownCloud - ownboard
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Loic Blot <*****@*****.**>
 * @copyright Loic Blot 2015
 */
namespace OCA\OwnBoard\AppInfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'board#index', 'url' => '/', 'verb' => 'GET'), array('name' => 'board#get', 'url' => '/board/get', 'verb' => 'GET'), array('name' => 'board#getall', 'url' => '/board/getall', 'verb' => 'GET'), array('name' => 'board#create', 'url' => '/board/create', 'verb' => 'POST'), array('name' => 'board#delete', 'url' => '/board/delete', 'verb' => 'POST'), array('name' => 'board#update', 'url' => '/board/update', 'verb' => 'POST'), array('name' => 'category#get', 'url' => '/category/get', 'verb' => 'GET'), array('name' => 'category#create', 'url' => '/category/create', 'verb' => 'POST'), array('name' => 'category#delete', 'url' => '/category/delete', 'verb' => 'POST'), array('name' => 'category#update', 'url' => '/category/update', 'verb' => 'POST'), array('name' => 'postit#get', 'url' => '/postit/get', 'verb' => 'GET'), array('name' => 'postit#create', 'url' => '/postit/create', 'verb' => 'POST'), array('name' => 'postit#delete', 'url' => '/postit/delete', 'verb' => 'POST'), array('name' => 'postit#update', 'url' => '/postit/update', 'verb' => 'POST'), array('name' => 'comment#create', 'url' => '/comment/create', 'verb' => 'POST'), array('name' => 'comment#delete', 'url' => '/comment/delete', 'verb' => 'POST'), array('name' => 'comment#update', 'url' => '/comment/update', 'verb' => 'POST'))));
Example #7
0
<?php

/**
 * Copyright (c) 2012 Bart Visscher <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
namespace OCA\Files\Appinfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'API#getThumbnail', 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', 'verb' => 'GET', 'requirements' => array('file' => '.+')))));
/** @var $this \OC\Route\Router */
$this->create('files_index', '/')->actionInclude('files/index.php');
$this->create('files_ajax_delete', 'ajax/delete.php')->actionInclude('files/ajax/delete.php');
$this->create('files_ajax_download', 'ajax/download.php')->actionInclude('files/ajax/download.php');
$this->create('files_ajax_getstoragestats', 'ajax/getstoragestats.php')->actionInclude('files/ajax/getstoragestats.php');
$this->create('files_ajax_list', 'ajax/list.php')->actionInclude('files/ajax/list.php');
$this->create('files_ajax_mimeicon', 'ajax/mimeicon.php')->actionInclude('files/ajax/mimeicon.php');
$this->create('files_ajax_move', 'ajax/move.php')->actionInclude('files/ajax/move.php');
$this->create('files_ajax_newfile', 'ajax/newfile.php')->actionInclude('files/ajax/newfile.php');
$this->create('files_ajax_newfolder', 'ajax/newfolder.php')->actionInclude('files/ajax/newfolder.php');
$this->create('files_ajax_rename', 'ajax/rename.php')->actionInclude('files/ajax/rename.php');
$this->create('files_ajax_scan', 'ajax/scan.php')->actionInclude('files/ajax/scan.php');
$this->create('files_ajax_upload', 'ajax/upload.php')->actionInclude('files/ajax/upload.php');
$this->create('download', 'download{file}')->requirements(array('file' => '.*'))->actionInclude('files/download.php');
// Register with the capabilities API
\OC_API::register('get', '/cloud/capabilities', array('OCA\\Files\\Capabilities', 'getCapabilities'), 'files', \OC_API::USER_AUTH);
Example #8
0
<?php

/**
 * ownCloud - dashboard
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Florian Steffens <*****@*****.**>
 * @copyright Florian Steffens 2014
 */
namespace OCA\Dashboard\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'route_page#index', 'url' => '/', 'verb' => 'GET'), array('name' => 'route_widget_content#get_complete', 'url' => '/widget/content/getComplete/{wiid}', 'verb' => 'GET'), array('name' => 'route_widget_content#get_content', 'url' => '/widget/content/getContent/{wiid}', 'verb' => 'GET'), array('name' => 'routeWidgetContent#call_method', 'url' => '/widget/content/callMethod', 'verb' => 'POST'), array('name' => 'route_widget_settings#set_config', 'url' => '/widget/settings/setConfig', 'verb' => 'POST'), array('name' => 'route_widget_settings#get_config', 'url' => '/widget/settings/getConfig/{wIId}/{key}', 'verb' => 'GET'), array('name' => 'route_widget_management#get_enabled_widgets', 'url' => '/widget/management/enabled', 'verb' => 'GET'), array('name' => 'route_widget_management#get_available_widgets', 'url' => '/widget/management/available', 'verb' => 'GET'), array('name' => 'route_widget_management#get_basic_conf', 'url' => '/widget/management/basicConf/{wId}', 'verb' => 'GET'), array('name' => 'route_widget_management#add_new_instance', 'url' => '/widget/management/add/{wid}', 'verb' => 'PUT'), array('name' => 'route_widget_management#remove_instance', 'url' => '/widget/management/remove/{wiid}', 'verb' => 'DELETE'), array('name' => 'routeWidgetManagement#enable_widget', 'url' => '/widget/management/enable/{wid}', 'verb' => 'PUT'), array('name' => 'routeWidgetManagement#disable_widget', 'url' => '/widget/management/disable/{wid}', 'verb' => 'PUT'), array('name' => 'route_settings#get_config', 'url' => '/settings/{key}', 'verb' => 'GET'), array('name' => 'route_settings#set_config', 'url' => '/settings', 'verb' => 'POST'))));
Example #9
0
<?php

/**
 * ownCloud - files_external_aws
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author simon <*****@*****.**>
 * @copyright simon 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\Files_External_Aws\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
namespace OCA\Files_External_Aws\AppInfo;

$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'Usage#getSize', 'url' => '/getSize', 'verb' => 'GET']]]);
Example #10
0
 *
 * You should have received a copy of the GNU Affero General Public
 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 */

namespace OCA\secure_container\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(
	array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'),
	
	// Routes for the Encrypted containers and entries
	array('name' => 'page#entries', 'url' => '/list/{path}', 'verb' => 'GET'),
	array('name' => 'page#show', 'url' => '/get/{guid}', 'verb' => 'GET'),
	array('name' => 'page#save', 'url' => '/save/{guid}', 'verb' => 'POST'),
	array('name' => 'page#delete', 'url' => '/delete/{guid}', 'verb' => 'GET'),

	// Routes for the Sections/Pathes
	array('name' => 'page#sections', 'url' => '/sections', 'verb' => 'GET'),
	array('name' => 'page#section', 'url' => '/create/{guid}', 'verb' => 'POST'),
)));

Example #11
0
 * later. See the COPYING file.
 *
 * @author Ben Curtis <*****@*****.**>
 * @copyright Ben Curtis 2015
 */

namespace OCA\OwnNote\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();

$application->registerRoutes($this, array('routes' => array(
	array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'),
	array('name' => 'ownnote_api#index', 'url' => '/api/v0.2/ownnote', 'verb' => 'GET'),
	array('name' => 'ownnote_api#ren', 'url' => '/api/v0.2/ownnote/ren', 'verb' => 'POST'),
	array('name' => 'ownnote_api#edit', 'url' => '/api/v0.2/ownnote/edit', 'verb' => 'POST'),
	array('name' => 'ownnote_api#del', 'url' => '/api/v0.2/ownnote/del', 'verb' => 'POST'),
	array('name' => 'ownnote_api#save', 'url' => '/api/v0.2/ownnote/save', 'verb' => 'POST'),
	array('name' => 'ownnote_api#create', 'url' => '/api/v0.2/ownnote/create', 'verb' => 'POST'),
	array('name' => 'ownnote_api#delgroup', 'url' => '/api/v0.2/ownnote/delgroup', 'verb' => 'POST'),
	array('name' => 'ownnote_api#rengroup', 'url' => '/api/v0.2/ownnote/rengroup', 'verb' => 'POST'),
        array('name' => 'ownnote_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')),
)));
Example #12
0
<?php

/**
 * ownCloud - shorten
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Ben Curtis <*****@*****.**>
 * @copyright Ben Curtis 2015
 */
namespace OCA\Shorten\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'shorten_api#makeurl', 'url' => '/makeurl', 'verb' => 'POST'), array('name' => 'shorten_api#setval', 'url' => '/setval', 'verb' => 'POST'), array('name' => 'shorten_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')))));
$this->create('shorten_code', '/code.php')->action(function ($params) {
    require 'shorten/lib/code.php';
});
Example #13
0
File: routes.php Project: gvde/core
<?php

/**
 * @author Lukas Reschke <*****@*****.**>
 *
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\UpdateNotification\AppInfo;

$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'Admin#createCredentials', 'url' => '/credentials', 'verb' => 'GET'], ['name' => 'Admin#setChannel', 'url' => '/channel', 'verb' => 'POST']]]);
Example #14
0
<?php

/**
 * ownCloud - files_external_aws
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author simon <*****@*****.**>
 * @copyright simon 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\Files_External_Aws\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
namespace OCA\Files_External_Aws\AppInfo;

$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'Usage#getSizeFromMount', 'url' => '/getSizeFromMount', 'verb' => 'GET'], ['name' => 'Usage#getSizeFromFilecache', 'url' => '/getSizeFromFilecache', 'verb' => 'GET']]]);
Example #15
0
<?php

/**
 * ownCloud - maps
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Sander Brand <*****@*****.**>
 * @copyright Sander Brand 2014
 */
namespace OCA\Maps\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'), array('name' => 'page#do_proxy', 'url' => '/router', 'verb' => 'GET'), array('name' => 'page#getlayer', 'url' => '/layer', 'verb' => 'GET'), array('name' => 'page#adresslookup', 'url' => '/adresslookup', 'verb' => 'GET'), array('name' => 'page#geodecode', 'url' => '/geodecode', 'verb' => 'GET'), array('name' => 'page#search', 'url' => '/search', 'verb' => 'GET'), array('name' => 'location#update', 'url' => '/api/1.0/location/update', 'verb' => 'GET'), array('name' => 'location#add_device', 'url' => '/api/1.0/location/adddevice', 'verb' => 'POST'), array('name' => 'location#remove_device', 'url' => '/api/1.0/location/removedevice', 'verb' => 'POST'), array('name' => 'location#load_devices', 'url' => '/api/1.0/location/loadDevices', 'verb' => 'GET'), array('name' => 'location#load_locations', 'url' => '/api/1.0/location/loadLocations', 'verb' => 'GET'), array('name' => 'favorite#add_favorite', 'url' => '/api/1.0/favorite/addToFavorites', 'verb' => 'POST'), array('name' => 'favorite#get_favorites', 'url' => '/api/1.0/favorite/getFavorites', 'verb' => 'POST'))));
Example #16
0
<?php

/**
 * Copyright (c) 2012 Bart Visscher <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or
 * later.
 * See the COPYING-README file.
 */
namespace OC\Settings;

$application = new Application();
$application->registerRoutes($this, array('resources' => array('groups' => array('url' => '/settings/users/groups'), 'users' => array('url' => '/settings/users/users')), 'routes' => array(array('name' => 'MailSettings#setMailSettings', 'url' => '/settings/admin/mailsettings', 'verb' => 'POST'), array('name' => 'MailSettings#storeCredentials', 'url' => '/settings/admin/mailsettings/credentials', 'verb' => 'POST'), array('name' => 'MailSettings#sendTestMail', 'url' => '/settings/admin/mailtest', 'verb' => 'POST'), array('name' => 'AppSettings#listCategories', 'url' => '/settings/apps/categories', 'verb' => 'GET'), array('name' => 'AppSettings#listApps', 'url' => '/settings/apps/list', 'verb' => 'GET'), array('name' => 'SecuritySettings#enforceSSL', 'url' => '/settings/admin/security/ssl', 'verb' => 'POST'), array('name' => 'SecuritySettings#enforceSSLForSubdomains', 'url' => '/settings/admin/security/ssl/subdomains', 'verb' => 'POST'), array('name' => 'SecuritySettings#trustedDomains', 'url' => '/settings/admin/security/trustedDomains', 'verb' => 'POST'), array('name' => 'Users#setMailAddress', 'url' => '/settings/users/{id}/mailAddress', 'verb' => 'PUT'), array('name' => 'LogSettings#setLogLevel', 'url' => '/settings/admin/log/level', 'verb' => 'POST'), array('name' => 'LogSettings#getEntries', 'url' => '/settings/admin/log/entries', 'verb' => 'GET'), array('name' => 'LogSettings#download', 'url' => '/settings/admin/log/download', 'verb' => 'GET'))));
/** @var $this \OCP\Route\IRouter */
// Settings pages
$this->create('settings_help', '/settings/help')->actionInclude('settings/help.php');
$this->create('settings_personal', '/settings/personal')->actionInclude('settings/personal.php');
$this->create('settings_settings', '/settings')->actionInclude('settings/settings.php');
$this->create('settings_users', '/settings/users')->actionInclude('settings/users.php');
$this->create('settings_apps', '/settings/apps')->actionInclude('settings/apps.php');
$this->create('settings_admin', '/settings/admin')->actionInclude('settings/admin.php');
// Settings ajax actions
// users
$this->create('settings_ajax_everyonecount', '/settings/ajax/geteveryonecount')->actionInclude('settings/ajax/geteveryonecount.php');
$this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')->actionInclude('settings/ajax/setquota.php');
$this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')->actionInclude('settings/ajax/togglegroups.php');
$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')->actionInclude('settings/ajax/togglesubadmins.php');
$this->create('settings_users_changepassword', '/settings/users/changepassword')->post()->action('OC\\Settings\\ChangePassword\\Controller', 'changeUserPassword');
$this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')->actionInclude('settings/ajax/changedisplayname.php');
$this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php')->actionInclude('settings/ajax/changegroupname.php');
// personal
$this->create('settings_personal_changepassword', '/settings/personal/changepassword')->post()->action('OC\\Settings\\ChangePassword\\Controller', 'changePersonalPassword');
Example #17
0
 *
 * @author Vincent Petry
 * @copyright 2014 Vincent Petry <*****@*****.**>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
 *
 * You should have received a copy of the GNU Affero General Public
 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
namespace OCA\Files_External\Appinfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'Ajax#getSshKeys', 'url' => '/ajax/sftp_key.php', 'verb' => 'POST', 'requirements' => array()))));
/** @var $this OC\Route\Router */
$this->create('files_external_add_mountpoint', 'ajax/addMountPoint.php')->actionInclude('files_external/ajax/addMountPoint.php');
$this->create('files_external_remove_mountpoint', 'ajax/removeMountPoint.php')->actionInclude('files_external/ajax/removeMountPoint.php');
$this->create('files_external_add_root_certificate', 'ajax/addRootCertificate.php')->actionInclude('files_external/ajax/addRootCertificate.php');
$this->create('files_external_remove_root_certificate', 'ajax/removeRootCertificate.php')->actionInclude('files_external/ajax/removeRootCertificate.php');
$this->create('files_external_dropbox', 'ajax/dropbox.php')->actionInclude('files_external/ajax/dropbox.php');
$this->create('files_external_google', 'ajax/google.php')->actionInclude('files_external/ajax/google.php');
$this->create('files_external_list_applicable', '/applicable')->actionInclude('files_external/ajax/applicable.php');
\OC_API::register('get', '/apps/files_external/api/v1/mounts', array('\\OCA\\Files\\External\\Api', 'getUserMounts'), 'files_external');
Example #18
0
<?php

/**
 * ownCloud - user_openam
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Begood Technology Corp. <*****@*****.**>
 * @copyright Begood Technology Corp. 2014
 */
namespace OCA\user_openam\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array()));
/** @var $this \OC\Route\Router */
Example #19
0
 * @copyright Copyright (c) 2016, ownCloud, Inc.
 * @license AGPL-3.0
 *
 * This code is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OCA\Files\AppInfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'API#getThumbnail', 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', 'verb' => 'GET', 'requirements' => array('file' => '.+')), array('name' => 'API#updateFileTags', 'url' => '/api/v1/files/{path}', 'verb' => 'POST', 'requirements' => array('path' => '.+')), array('name' => 'API#getFilesByTag', 'url' => '/api/v1/tags/{tagName}/files', 'verb' => 'GET', 'requirements' => array('tagName' => '.+')), array('name' => 'API#updateFileSorting', 'url' => '/api/v1/sorting', 'verb' => 'POST'), array('name' => 'API#showHiddenFiles', 'url' => '/api/v1/showhidden', 'verb' => 'POST'), ['name' => 'view#index', 'url' => '/', 'verb' => 'GET'])));
/** @var $this \OC\Route\Router */
$this->create('files_ajax_delete', 'ajax/delete.php')->actionInclude('files/ajax/delete.php');
$this->create('files_ajax_download', 'ajax/download.php')->actionInclude('files/ajax/download.php');
$this->create('files_ajax_getstoragestats', 'ajax/getstoragestats.php')->actionInclude('files/ajax/getstoragestats.php');
$this->create('files_ajax_list', 'ajax/list.php')->actionInclude('files/ajax/list.php');
$this->create('files_ajax_move', 'ajax/move.php')->actionInclude('files/ajax/move.php');
$this->create('files_ajax_newfile', 'ajax/newfile.php')->actionInclude('files/ajax/newfile.php');
$this->create('files_ajax_newfolder', 'ajax/newfolder.php')->actionInclude('files/ajax/newfolder.php');
$this->create('files_ajax_rename', 'ajax/rename.php')->actionInclude('files/ajax/rename.php');
$this->create('files_ajax_upload', 'ajax/upload.php')->actionInclude('files/ajax/upload.php');
$this->create('download', 'download{file}')->requirements(array('file' => '.*'))->actionInclude('files/download.php');
Example #20
0
<?php

/**
 * ownCloud - ocDownloader
 *
 * This file is licensed under the Creative Commons BY-SA License version 3 or
 * later. See the COPYING file.
 *
 * @author Xavier Beurois <www.sgc-univ.net>
 * @copyright Xavier Beurois 2015
 */
namespace OCA\ocDownloader\AppInfo;

$Application = new Application();
$Application->registerRoutes($this, array('routes' => [['name' => 'Index#Add', 'url' => '/add', 'verb' => 'GET'], ['name' => 'Index#All', 'url' => '/all', 'verb' => 'GET'], ['name' => 'Index#Completes', 'url' => '/completes', 'verb' => 'GET'], ['name' => 'Index#Actives', 'url' => '/actives', 'verb' => 'GET'], ['name' => 'Index#Waitings', 'url' => '/waitings', 'verb' => 'GET'], ['name' => 'Index#Stopped', 'url' => '/stopped', 'verb' => 'GET'], ['name' => 'Index#Removed', 'url' => '/removed', 'verb' => 'GET'], ['name' => 'HttpDownloader#Add', 'url' => '/httpdownloader/add', 'verb' => 'POST'], ['name' => 'FtpDownloader#Add', 'url' => '/ftpdownloader/add', 'verb' => 'POST'], ['name' => 'YTDownloader#Add', 'url' => '/ytdownloader/add', 'verb' => 'POST'], ['name' => 'BTDownloader#Add', 'url' => '/btdownloader/add', 'verb' => 'POST'], ['name' => 'BTDownloader#ListTorrentFiles', 'url' => '/btdownloader/listtorrentfiles', 'verb' => 'POST'], ['name' => 'BTDownloader#UploadFiles', 'url' => '/btdownloader/uploadfiles', 'verb' => 'POST'], ['name' => 'Queue#Get', 'url' => '/queue/get', 'verb' => 'POST'], ['name' => 'Queue#Count', 'url' => '/queue/count', 'verb' => 'POST'], ['name' => 'Queue#Hide', 'url' => '/queue/hide', 'verb' => 'POST'], ['name' => 'Queue#HideAll', 'url' => '/queue/hideall', 'verb' => 'POST'], ['name' => 'Queue#Remove', 'url' => '/queue/remove', 'verb' => 'POST'], ['name' => 'Queue#CompletelyRemove', 'url' => '/queue/completelyremove', 'verb' => 'POST'], ['name' => 'Queue#Pause', 'url' => '/queue/pause', 'verb' => 'POST'], ['name' => 'Queue#UnPause', 'url' => '/queue/unpause', 'verb' => 'POST'], ['name' => 'Queue#RemoveAll', 'url' => '/queue/removeall', 'verb' => 'POST'], ['name' => 'Queue#CompletelyRemoveAll', 'url' => '/queue/completelyremoveall', 'verb' => 'POST'], ['name' => 'AdminSettings#Save', 'url' => '/adminsettings/save', 'verb' => 'POST'], ['name' => 'AdminSettings#Get', 'url' => '/adminsettings/get', 'verb' => 'POST'], ['name' => 'PersonalSettings#Save', 'url' => '/personalsettings/save', 'verb' => 'POST'], ['name' => 'PersonalSettings#Get', 'url' => '/personalsettings/get', 'verb' => 'GET'], ['name' => 'Updater#Check', 'url' => '/updater/check', 'verb' => 'GET']]));
$APIBasePath = '/apps/ocdownloader/api/';
\OCP\API::register('POST', $APIBasePath . 'version', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::CheckAddonVersion($_POST['AddonVersion']));
}, 'ocdownloader', \OC_API::USER_AUTH);
\OCP\API::register('GET', $APIBasePath . 'queue/get', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::GetQueue());
}, 'ocdownloader', \OC_API::USER_AUTH);
\OCP\API::register('POST', $APIBasePath . 'add', function ($URLParams) {
    return new \OC_OCS_Result(\OCA\ocDownloader\Controller\Lib\API::Add($_POST['URL']));
}, 'ocdownloader', \OC_API::USER_AUTH);
Example #21
0
<?php

/**
 * ownCloud - breakout
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Volkan Gezer <*****@*****.**>
 * @copyright Volkan Gezer 2014
 */
namespace OCA\Breakout\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'))));
Example #22
0
<?php

/**
 * ownCloud - ownnote
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Ben Curtis <*****@*****.**>
 * @copyright Ben Curtis 2015
 */
namespace OCA\OwnNote\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'page#index', 'url' => '/', 'verb' => 'GET'), array('name' => 'ownnote_api#ajaxsetval', 'url' => '/api/v0.2/ajaxsetval', 'verb' => 'POST'), array('name' => 'ownnote_api#index', 'url' => '/api/v0.2/ownnote', 'verb' => 'GET'), array('name' => 'ownnote_api#ajaxindex', 'url' => '/api/v0.2/ownnote/ajaxindex', 'verb' => 'GET'), array('name' => 'ownnote_api#remoteindex', 'url' => '/api/v0.2/ownnote/remoteindex', 'verb' => 'GET'), array('name' => 'ownnote_api#mobileindex', 'url' => '/api/v0.2/ownnote/mobileindex', 'verb' => 'GET'), array('name' => 'ownnote_api#announcement', 'url' => '/api/v0.2/ownnote/announcement', 'verb' => 'GET'), array('name' => 'ownnote_api#ajaxannouncement', 'url' => '/api/v0.2/ownnote/ajaxannouncement', 'verb' => 'GET'), array('name' => 'ownnote_api#version', 'url' => '/api/v0.2/ownnote/version', 'verb' => 'GET'), array('name' => 'ownnote_api#ajaxversion', 'url' => '/api/v0.2/ownnote/ajaxversion', 'verb' => 'GET'), array('name' => 'ownnote_api#ren', 'url' => '/api/v0.2/ownnote/ren', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxren', 'url' => '/api/v0.2/ownnote/ajaxren', 'verb' => 'POST'), array('name' => 'ownnote_api#edit', 'url' => '/api/v0.2/ownnote/edit', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxedit', 'url' => '/api/v0.2/ownnote/ajaxedit', 'verb' => 'POST'), array('name' => 'ownnote_api#del', 'url' => '/api/v0.2/ownnote/del', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxdel', 'url' => '/api/v0.2/ownnote/ajaxdel', 'verb' => 'POST'), array('name' => 'ownnote_api#save', 'url' => '/api/v0.2/ownnote/save', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxsave', 'url' => '/api/v0.2/ownnote/ajaxsave', 'verb' => 'POST'), array('name' => 'ownnote_api#create', 'url' => '/api/v0.2/ownnote/create', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxcreate', 'url' => '/api/v0.2/ownnote/ajaxcreate', 'verb' => 'POST'), array('name' => 'ownnote_api#delgroup', 'url' => '/api/v0.2/ownnote/delgroup', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxdelgroup', 'url' => '/api/v0.2/ownnote/ajaxdelgroup', 'verb' => 'POST'), array('name' => 'ownnote_api#rengroup', 'url' => '/api/v0.2/ownnote/rengroup', 'verb' => 'POST'), array('name' => 'ownnote_api#ajaxrengroup', 'url' => '/api/v0.2/ownnote/ajaxrengroup', 'verb' => 'POST'), array('name' => 'ownnote_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')))));
Example #23
0
<?php

namespace OCA\Files_Texteditor\AppInfo;

$app = new Application();
$app->registerRoutes($this, array('routes' => array(['name' => 'FileHandling#load', 'url' => '/ajax/loadfile', 'verb' => 'GET'], ['name' => 'FileHandling#save', 'url' => '/ajax/savefile', 'verb' => 'PUT'])));
Example #24
0
<?php

/**
 * ownCloud - sharing_group
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Eric <*****@*****.**>
 * @copyright Eric 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\Sharing_Group\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
namespace OCA\Sharing_Group\AppInfo;

$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'user#index', 'url' => '/user', 'verb' => 'GET'], ['name' => 'SharingGroups#fetch', 'url' => '/fetch', 'verb' => 'GET'], ['name' => 'SharingGroups#fetchAll', 'url' => '/fetchAll', 'verb' => 'GET'], ['name' => 'SharingGroups#getAllGroupsInfo', 'url' => '/getAllGroupsInfo', 'verb' => 'GET'], ['name' => 'SharingGroups#create', 'url' => '/create', 'verb' => 'POST'], ['name' => 'SharingGroups#controlGroupUser', 'url' => '/controlGroupUser', 'verb' => 'POST'], ['name' => 'SharingGroups#renameGroup', 'url' => '/renameGroup', 'verb' => 'POST'], ['name' => 'SharingGroups#deleteGroup', 'url' => '/deleteGroup', 'verb' => 'POST'], ['name' => 'SharingGroups#importGroup', 'url' => '/importGroup', 'verb' => 'POST'], ['name' => 'SharingGroups#export', 'url' => '/export', 'verb' => 'GET']]]);
<?php

/**
 * ownCloud - user_permission
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Dino Peng <*****@*****.**>
 * @copyright Dino Peng 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\MyApp\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
namespace OCA\User_Permission\AppInfo;

$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'Permission#changeEnabled', 'url' => '/changeEnabled', 'verb' => 'POST'], ['name' => 'Permission#getEnabled', 'url' => '/getEnabled', 'verb' => 'POST']]]);
Example #26
0
<?php

/**
 * ownCloud - ownbackup
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Patrizio Bekerle <*****@*****.**>
 * @copyright Patrizio Bekerle 2015
 */
namespace OCA\OwnBackup\AppInfo;

$application = new Application();
/** @var $this \OC\Route\Router */
$application->registerRoutes($this, ['routes' => [['name' => 'admin#do_restore_tables', 'url' => '/restore-tables', 'verb' => 'POST'], ['name' => 'admin#do_fetch_tables', 'url' => '/fetch-tables', 'verb' => 'POST'], ['name' => 'admin#do_create_backup', 'url' => '/create-backup', 'verb' => 'POST']]]);
<?php

/**
 * ownCloud - show_all_activity
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author eric <*****@*****.**>
 * @copyright eric 2015
 */
/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> OCA\Show_All_Activity\Controller\PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
namespace OCA\Show_All_Activity\AppInfo;

$this->create('test_ajax', 'ajax/test.php')->actionInclude('show_all_activity/ajax/test.php');
$application = new Application();
$application->registerRoutes($this, ['routes' => [['name' => 'Show#fetch', 'url' => '/fetch', 'verb' => 'GET']]]);
Example #28
0
<?php

/**
 * ownCloud - cloudmaster
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Jörn Friedrich Dreyer <*****@*****.**>
 * @copyright Jörn Friedrich Dreyer 2014
 */
namespace OCA\Search_Lucene\AppInfo;

/**
 * Create your routes in here. The name is the lowercase name of the controller
 * without the controller part, the stuff after the hash is the method.
 * e.g. page#index -> PageController->index()
 *
 * The controller class has to be registered in the application.php file since
 * it's instantiated in there
 */
$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'api#index', 'url' => '/indexer/index', 'verb' => 'GET'), array('name' => 'api#optimize', 'url' => '/indexer/optimize', 'verb' => 'POST'))));
Example #29
0
 * it under the terms of the GNU Affero General Public License, version 3,
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License, version 3,
 * along with this program.  If not, see <http://www.gnu.org/licenses/>
 *
 */
namespace OC\Settings;

$application = new Application();
$application->registerRoutes($this, ['resources' => ['groups' => ['url' => '/settings/users/groups'], 'users' => ['url' => '/settings/users/users']], 'routes' => [['name' => 'MailSettings#setMailSettings', 'url' => '/settings/admin/mailsettings', 'verb' => 'POST'], ['name' => 'MailSettings#storeCredentials', 'url' => '/settings/admin/mailsettings/credentials', 'verb' => 'POST'], ['name' => 'MailSettings#sendTestMail', 'url' => '/settings/admin/mailtest', 'verb' => 'POST'], ['name' => 'Encryption#startMigration', 'url' => '/settings/admin/startmigration', 'verb' => 'POST'], ['name' => 'AppSettings#listCategories', 'url' => '/settings/apps/categories', 'verb' => 'GET'], ['name' => 'AppSettings#viewApps', 'url' => '/settings/apps', 'verb' => 'GET'], ['name' => 'AppSettings#listApps', 'url' => '/settings/apps/list', 'verb' => 'GET'], ['name' => 'AppSettings#changeExperimentalConfigState', 'url' => '/settings/apps/experimental', 'verb' => 'POST'], ['name' => 'SecuritySettings#trustedDomains', 'url' => '/settings/admin/security/trustedDomains', 'verb' => 'POST'], ['name' => 'Users#setMailAddress', 'url' => '/settings/users/{id}/mailAddress', 'verb' => 'PUT'], ['name' => 'Users#stats', 'url' => '/settings/users/stats', 'verb' => 'GET'], ['name' => 'LogSettings#setLogLevel', 'url' => '/settings/admin/log/level', 'verb' => 'POST'], ['name' => 'LogSettings#getEntries', 'url' => '/settings/admin/log/entries', 'verb' => 'GET'], ['name' => 'LogSettings#download', 'url' => '/settings/admin/log/download', 'verb' => 'GET'], ['name' => 'CheckSetup#check', 'url' => '/settings/ajax/checksetup', 'verb' => 'GET'], ['name' => 'Certificate#addPersonalRootCertificate', 'url' => '/settings/personal/certificate', 'verb' => 'POST'], ['name' => 'Certificate#removePersonalRootCertificate', 'url' => '/settings/personal/certificate/{certificateIdentifier}', 'verb' => 'DELETE']]]);
/** @var $this \OCP\Route\IRouter */
// Settings pages
$this->create('settings_help', '/settings/help')->actionInclude('settings/help.php');
$this->create('settings_personal', '/settings/personal')->actionInclude('settings/personal.php');
$this->create('settings_users', '/settings/users')->actionInclude('settings/users.php');
$this->create('settings_admin', '/settings/admin')->actionInclude('settings/admin.php');
// Settings ajax actions
// users
$this->create('settings_ajax_setquota', '/settings/ajax/setquota.php')->actionInclude('settings/ajax/setquota.php');
$this->create('settings_ajax_togglegroups', '/settings/ajax/togglegroups.php')->actionInclude('settings/ajax/togglegroups.php');
$this->create('settings_ajax_togglesubadmins', '/settings/ajax/togglesubadmins.php')->actionInclude('settings/ajax/togglesubadmins.php');
$this->create('settings_users_changepassword', '/settings/users/changepassword')->post()->action('OC\\Settings\\ChangePassword\\Controller', 'changeUserPassword');
$this->create('settings_ajax_changedisplayname', '/settings/ajax/changedisplayname.php')->actionInclude('settings/ajax/changedisplayname.php');
$this->create('settings_ajax_changegorupname', '/settings/ajax/changegroupname.php')->actionInclude('settings/ajax/changegroupname.php');
// personal
Example #30
0
<?php

/**
 * ownCloud - user_shib
 *
 * This file is licensed under the Affero General Public License version 3 or
 * later. See the COPYING file.
 *
 * @author Miroslav Bauer @ CESNET <*****@*****.**>
 * @copyright Miroslav Bauer @ CESNET 2016
 */
namespace OCA\User_Shib\AppInfo;

$application = new Application();
$application->registerRoutes($this, array('routes' => array(array('name' => 'session#login', 'url' => '/login', 'verb' => 'GET'), array('name' => 'settings#saveMappings', 'url' => '/ajax/admin.php/mapping', 'verb' => 'POST'), array('name' => 'settings#saveBackendConfig', 'url' => '/ajax/admin.php/backend', 'verb' => 'POST'))));