feat: add /me endpoint

This commit is contained in:
Maël Gangloff
2024-07-18 12:36:01 +02:00
parent 9d88599d86
commit 2efc3da018
4 changed files with 54 additions and 7 deletions

View File

@@ -2,19 +2,25 @@ api_platform:
title: Domain Watchdog API
version: 1.0.0
formats:
jsonld: ['application/ld+json']
json: ['application/json']
jsonld: [ 'application/ld+json' ]
json: [ 'application/json' ]
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
jsonld: [ 'application/ld+json' ]
jsonopenapi: [ 'application/vnd.openapi+json' ]
html: [ 'text/html' ]
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
vary: [ 'Content-Type', 'Authorization', 'Origin' ]
extra_properties:
standard_put: true
rfc_7807_compliant_errors: true
keep_legacy_inflector: false
use_symfony_listeners: true
show_webby: false
swagger:
api_keys:
JWT:
name: Authorization
type: header

View File

@@ -17,7 +17,7 @@ security:
pattern: ^/api/login
stateless: true
json_login:
check_path: /api/login
check_path: api_login
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure