I have Entity Users and if i call:
- http://example.com/api/login_check – i get token
- http://example.com/api/users – i get all users (with token in header)
- http://example.com/api/users/1 – i get specific user (withtoken in header)
- http://example.com/api/user – i want to get user who is logged with provided token form 1.
Is there any way to be create on User entity, or i need to create Controller and develop the route ?
Thanks in advice
Source: Symfony Questions