mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
remove dumb code
This commit is contained in:
parent
b3dc0749d3
commit
6d37a7e6c1
3 changed files with 6 additions and 139 deletions
|
@ -232,37 +232,13 @@ class WallabagRestController extends Controller
|
|||
* Retrieve all tags
|
||||
*
|
||||
* @ApiDoc(
|
||||
* {"name"="user", "dataType"="integer", "requirement"="\w+", "description"="The user ID"}
|
||||
* )
|
||||
*/
|
||||
public function getTagsAction()
|
||||
public function getTagsUserAction()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve a single tag
|
||||
*
|
||||
* @ApiDoc(
|
||||
* requirements={
|
||||
* {"name"="label", "dataType"="string", "requirement"="\w+", "description"="Label of the tag"}
|
||||
* }
|
||||
* )
|
||||
*/
|
||||
public function getTagAction($label)
|
||||
{
|
||||
$tag = $this
|
||||
->getDoctrine()
|
||||
->getRepository('WallabagCoreBundle:Tag')
|
||||
->findOneByLabel($label);
|
||||
|
||||
if (is_null($tag)) {
|
||||
throw $this->createNotFoundException();
|
||||
}
|
||||
|
||||
$json = $this->get('serializer')->serialize($tag, 'json');
|
||||
|
||||
return new Response($json, 200, array('application/json'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Permanently remove one tag from **every** entry
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue