1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-05 18:41:02 +00:00

Re-create all API routes

This commit is contained in:
Jeremy Benoist 2022-11-23 12:44:55 +01:00
parent 2efb990a14
commit 27e788d0be
No known key found for this signature in database
GPG key ID: 7168D5DD29F38552
12 changed files with 82 additions and 20 deletions

View file

@ -13,6 +13,7 @@ use Swagger\Annotations as SWG;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Translation\TranslatorInterface;
use Wallabag\ApiBundle\Entity\Client;
use Wallabag\UserBundle\Entity\User;
@ -32,6 +33,8 @@ class UserRestController extends WallabagRestController
* )
* )
*
* @Route("/api/user.{_format}", methods={"GET"}, name="api_get_user", defaults={"_format": "json"})
*
* @return JsonResponse
*/
public function getUserAction()
@ -83,6 +86,8 @@ class UserRestController extends WallabagRestController
*
* @todo Make this method (or the whole API) accessible only through https
*
* @Route("/api/user.{_format}", methods={"PUT"}, name="api_put_user", defaults={"_format": "json"})
*
* @return JsonResponse
*/
public function putUserAction(Request $request)