lint
This commit is contained in:
@@ -10,8 +10,6 @@ from fastapi import FastAPI, Query
|
|||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
from fastapi.responses import JSONResponse
|
from fastapi.responses import JSONResponse
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
app = FastAPI(title="Signature Validation API")
|
app = FastAPI(title="Signature Validation API")
|
||||||
|
|
||||||
# Optional path prefix support: when behind a reverse-proxy that uses a
|
# Optional path prefix support: when behind a reverse-proxy that uses a
|
||||||
@@ -35,6 +33,7 @@ async def _strip_api_prefix(request, call_next):
|
|||||||
request.scope["root_path"] = api_prefix
|
request.scope["root_path"] = api_prefix
|
||||||
return await call_next(request)
|
return await call_next(request)
|
||||||
|
|
||||||
|
|
||||||
# Allow PHP application to call this API
|
# Allow PHP application to call this API
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
|||||||
Reference in New Issue
Block a user