Middleware auth:sanctum not working in Laravel Module route
I have used nWidart/laravel-modules package then I installed 'Laravel/sanctum' through composer and published the vendor and migrated migrations and used Laravel\Sanctum\HasApiTokens on Entitites/User. There is an api route file on user module and 'auth:sanctum' middleware is used on '/api/me' route. It should send Unauthenticated JSON response when there is no token, but when i hit this api without token, its showing login page even if i had used Accept: application/json as header.
Also im not able to hit this api even if i have sent the current token.
This is my api route file:

This is the response i'm getting when I hit that api.

Please or to participate in this conversation.