Add FastAPI backend and React frontend setup with initial routes and components
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
from fastapi import Header, HTTPException
|
||||
|
||||
async def get_token_header(x_token: str = Header()):
|
||||
if x_token != "fake-super-secret-token":
|
||||
raise HTTPException(status_code=400, detail="X-Token header invalid")
|
||||
Reference in New Issue
Block a user