Skip to content

Commit 762233c

Browse files
committed
changes made
1 parent 87eac74 commit 762233c

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

__pycache__/main.cpython-312.pyc

117 Bytes
Binary file not shown.
Binary file not shown.

apps/calculator/image.py

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
router=APIRouter()
1010

11+
1112
@router.post('')
1213
async def run(imageData:ImageData):
1314
image_data=base64.b64decode(imageData.image.split(",")[1])

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async def lifespan(app:FastAPI):
1515

1616
app.add_middleware(
1717
CORSMiddleware,
18-
allow_origins=["*"],
18+
allow_origins=["*","https://mathcanvas.vercel.app/","https://mathcanvas-git-main-himanshu-singhs-projects-3fa7f7ca.vercel.app/"],
1919
allow_credentials=True,
2020
allow_methods=["*"],
2121
allow_headers=["*"],

0 commit comments

Comments
 (0)