Welcome to mirror list, hosted at ThFree Co, Russian Federation.

routes.php « appinfo - github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 47b5c6d95a96bed41a88dda80a0f614b62c0f7a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
 * @copyright Copyright (c] 2017 Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
 *
 * @author Vinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>
 *
 * @license GNU AGPL version 3 or any later version
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option] any later version.
 *
 *  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
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

return [
	'routes' => [
		['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],
		['name' => 'page#index', 'url' => '/list/{id}', 'verb' => 'GET', 'postfix' => 'list'],
		['name' => 'page#index', 'url' => '/vote/{id}', 'verb' => 'GET', 'postfix' => 'vote'],
		['name' => 'page#vote_public', 'url' => '/s/{token}', 'verb' => 'GET', 'postfix' => 'public'],
		['name' => 'page#vote_public', 'url' => '/poll/{token}', 'verb' => 'GET', 'postfix' => 'oldpublic'],

		['name' => 'subscription#get', 'url' => '/subscription/get/{pollId}', 'verb' => 'GET'],
		['name' => 'subscription#set', 'url' => '/subscription/set/', 'verb' => 'POST'],

		['name' => 'comment#getByToken', 'url' => '/comments/get/s/{token}', 'verb' => 'GET'],
		['name' => 'comment#writeByToken', 'url' => '/comment/write/s/', 'verb' => 'POST'],
		['name' => 'comment#get', 'url' => '/comments/get/{pollId}', 'verb' => 'GET'],
		['name' => 'comment#write', 'url' => '/comment/write/', 'verb' => 'POST'],
		['name' => 'comment#delete', 'url' => '/comment/delete/', 'verb' => 'POST'],
		['name' => 'comment#deleteByToken', 'url' => '/comment/delete/s/', 'verb' => 'POST'],

		['name' => 'vote#getByToken', 'url' => '/votes/get/s/{token}', 'verb' => 'GET'],
		['name' => 'vote#setByToken', 'url' => '/vote/set/s/', 'verb' => 'POST'],
		['name' => 'vote#get', 'url' => '/votes/get/{pollId}', 'verb' => 'GET'],
		['name' => 'vote#set', 'url' => '/vote/set/', 'verb' => 'POST'],
		['name' => 'vote#write', 'url' => '/vote/write/', 'verb' => 'POST'],

		['name' => 'option#get', 'url' => '/options/get/{pollId}', 'verb' => 'GET'],
		['name' => 'option#add', 'url' => '/option/add/', 'verb' => 'POST'],
		['name' => 'option#update', 'url' => '/option/update/', 'verb' => 'POST'],
		['name' => 'option#remove', 'url' => '/option/remove/', 'verb' => 'POST'],
		['name' => 'option#getByToken', 'url' => '/options/get/s/{token}', 'verb' => 'GET'],

		['name' => 'poll#list', 'url' => '/poll/list/', 'verb' => 'GET'],
		['name' => 'poll#get', 'url' => '/poll/get/{pollId}', 'verb' => 'GET'],
		['name' => 'poll#delete', 'url' => '/poll/delete/{pollId}', 'verb' => 'GET'],
		['name' => 'poll#write', 'url' => '/poll/write/', 'verb' => 'POST'],
		['name' => 'poll#clone', 'url' => '/poll/clone/{pollId}', 'verb' => 'get'],
		['name' => 'poll#getByToken', 'url' => '/poll/get/s/{token}', 'verb' => 'GET'],

		['name' => 'share#getShares', 'url' => '/shares/get/{pollId}', 'verb' => 'GET'],
		['name' => 'share#write', 'url' => '/share/write/', 'verb' => 'POST'],
		['name' => 'share#createPersonalShare', 'url' => '/share/create/s/', 'verb' => 'POST'],
		['name' => 'share#remove', 'url' => '/share/remove/', 'verb' => 'POST'],
		['name' => 'share#get', 'url' => '/share/get/{token}', 'verb' => 'GET'],

		['name' => 'acl#getByToken', 'url' => '/acl/get/s/{token}', 'verb' => 'GET'],
		['name' => 'acl#get', 'url' => '/acl/get/{id}', 'verb' => 'GET'],

		['name' => 'system#get_site_users_and_groups', 'url' => '/siteusers/get/', 'verb' => 'POST'],
		['name' => 'system#validate_public_username', 'url' => '/check/username', 'verb' => 'POST']
	]
];