We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 370e0d3 commit 06127bfCopy full SHA for 06127bf
security.rst
@@ -1054,7 +1054,7 @@ token (or whatever you need to return) and return the JSON response:
1054
1055
class ApiLoginController extends AbstractController
1056
{
1057
- #[Route('/api/login', name: 'api_login')]
+ #[Route('/api/login', name: 'api_login', methods: ['POST'])]
1058
- public function index(): Response
1059
+ public function index(#[CurrentUser] ?User $user): Response
1060
0 commit comments