kopia lustrzana https://github.com/nextcloud/social
45 wiersze
1.2 KiB
PHP
45 wiersze
1.2 KiB
PHP
<?php
|
|
/**
|
|
* 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\MailTest\Controller\PageController->index()
|
|
*
|
|
* The controller class has to be registered in the application.php file since
|
|
* it's instantiated in there
|
|
*/
|
|
return [
|
|
'routes' => [
|
|
['name' => 'Navigation#navigate', 'url' => '/', 'verb' => 'GET'],
|
|
|
|
[
|
|
'name' => 'ServiceAccounts#getAvailableAccounts', 'url' => '/user/accounts',
|
|
'verb' => 'GET'
|
|
],
|
|
[
|
|
'name' => 'ServiceAccounts#create', 'url' => '/user/account',
|
|
'verb' => 'POST'
|
|
],
|
|
[
|
|
'name' => 'ActivityStreams#test', 'url' => '/user/account/{accountId}/test',
|
|
'verb' => 'GET'
|
|
],
|
|
[
|
|
'name' => 'ActivityStreams#statuses', 'url' => '/user/account/{accountId}/statuses',
|
|
'verb' => 'GET'
|
|
],
|
|
[
|
|
'name' => 'ActivityStreams#follows', 'url' => '/user/account/{accountId}/follows',
|
|
'verb' => 'GET'
|
|
],
|
|
|
|
// [
|
|
// 'name' => 'OAuth2#getAuthUrl', 'url' => '/client/oauth2/auth/{serviceId}/',
|
|
// 'verb' => 'GET'
|
|
// ],
|
|
[
|
|
'name' => 'OAuth2#setCode', 'url' => '/client/oauth2/redirect/{serviceId}/',
|
|
'verb' => 'GET'
|
|
]
|
|
]
|
|
];
|