Skip to content

Commit 8c080f4

Browse files
committed
Minor tweak
1 parent 4dfdbf0 commit 8c080f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

security.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,8 @@ token (or whatever you need to return) and return the JSON response:
10541054
10551055
class ApiLoginController extends AbstractController
10561056
{
1057-
#[Route('/api/login', name: 'api_login', methods: ['POST'])]
1057+
- #[Route('/api/login', name: 'api_login')]
1058+
+ #[Route('/api/login', name: 'api_login', methods: ['POST'])]
10581059
- public function index(): Response
10591060
+ public function index(#[CurrentUser] ?User $user): Response
10601061
{

0 commit comments

Comments
 (0)