зеркало из https://github.com/nextcloud/news.git
removed useless get calls to api
This commit is contained in:
Родитель
f8bdf57881
Коммит
3d405e0541
|
@ -40,14 +40,6 @@ use \OCA\AppFramework\External\External;
|
|||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('get', '/apps/news/folders/{folderId}',
|
||||
function($params) {
|
||||
return External::main('FolderAPI', 'get', $params, new DIContainer());
|
||||
},
|
||||
'news',
|
||||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('post', '/apps/news/folders',
|
||||
function($params) {
|
||||
return External::main('FolderAPI', 'create', $params, new DIContainer());
|
||||
|
@ -84,14 +76,6 @@ use \OCA\AppFramework\External\External;
|
|||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('get', '/apps/news/feeds/{feedId}',
|
||||
function($params) {
|
||||
return External::main('FeedAPI', 'get', $params, new DIContainer());
|
||||
},
|
||||
'news',
|
||||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('post', '/apps/news/feeds/{feedId}',
|
||||
function($params) {
|
||||
return External::main('FeedAPI', 'create', $params, new DIContainer());
|
||||
|
@ -116,7 +100,7 @@ use \OCA\AppFramework\External\External;
|
|||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('get', '/apps/news/feeds/{feedId}/read',
|
||||
\OCP\API::register('put', '/apps/news/feeds/{feedId}/read',
|
||||
function($params) {
|
||||
return External::main('FeedAPI', 'read', $params, new DIContainer());
|
||||
},
|
||||
|
@ -143,14 +127,6 @@ use \OCA\AppFramework\External\External;
|
|||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('get', '/apps/news/items/{itemId}',
|
||||
function($params) {
|
||||
return External::main('ItemAPI', 'get', $params, new DIContainer());
|
||||
},
|
||||
'news',
|
||||
\OC_API::USER_AUTH
|
||||
);
|
||||
|
||||
\OCP\API::register('put', '/apps/news/items/{itemId}/read',
|
||||
function($params) {
|
||||
return External::main('ItemAPI', 'read', $params, new DIContainer());
|
||||
|
|
|
@ -76,11 +76,6 @@ class FeedAPI extends Controller {
|
|||
}
|
||||
|
||||
|
||||
public function get() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function create() {
|
||||
|
||||
}
|
||||
|
|
|
@ -59,11 +59,6 @@ class FolderAPI extends Controller {
|
|||
}
|
||||
|
||||
|
||||
public function get() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function create() {
|
||||
|
||||
}
|
||||
|
|
|
@ -36,4 +36,5 @@ class NewsAPIResultTest extends \PHPUnit_Framework_TestCase {
|
|||
$this->assertEquals(409, $result->getStatusCode());
|
||||
}
|
||||
|
||||
|
||||
}
|
Загрузка…
Ссылка в новой задаче