Skip to content

Commit

Permalink
Updated main
Browse files Browse the repository at this point in the history
  • Loading branch information
habibrahmanbd committed Mar 24, 2024
1 parent adbeb38 commit 9498d4f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions pysrc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@
app = FastAPI()

origins = [
"http://localhost",
"http://localhost:8080",
"http://localhost:3000",
"http://localhost:8000",
"http://localhost:8081",
"*",
]

app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand All @@ -31,8 +26,6 @@
async def main():
return {"message": "Hello World"}

app = FastAPI()

@app.post("/upload-image/")
async def create_upload_file(file: UploadFile = File(...)):
try:
Expand Down

0 comments on commit 9498d4f

Please sign in to comment.