|
@ -1,6 +1,7 @@ |
|
|
from fastapi import Depends, FastAPI, Header, HTTPException |
|
|
|
|
|
from typing import Annotated |
|
|
from typing import Annotated |
|
|
|
|
|
|
|
|
|
|
|
from fastapi import Depends, FastAPI, Header, HTTPException |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def verify_token(x_token: Annotated[str, Header()]): |
|
|
async def verify_token(x_token: Annotated[str, Header()]): |
|
|
if x_token != "fake-super-secret-token": |
|
|
if x_token != "fake-super-secret-token": |
|
|