Spaces:
Runtime error
Runtime error
Commit
·
0160c14
1
Parent(s):
35679ce
Update main.py
Browse files
main.py
CHANGED
@@ -87,7 +87,7 @@ async def validation_exception_handler(request: Request, exc: ValidationError):
|
|
87 |
|
88 |
|
89 |
# Fonction pour vérifier l'authentification de l'utilisateur
|
90 |
-
def authenticate(authorization: str ):
|
91 |
if not authorization:
|
92 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
93 |
try:
|
|
|
87 |
|
88 |
|
89 |
# Fonction pour vérifier l'authentification de l'utilisateur
|
90 |
+
def authenticate(authorization: str = Header(None)):
|
91 |
if not authorization:
|
92 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
93 |
try:
|