Spaces:
Sleeping
Sleeping
Delete app.py
Browse files
app.py
DELETED
|
@@ -1,19 +0,0 @@
|
|
| 1 |
-
from fastapi import FastAPI
|
| 2 |
-
from fastapi.middleware.cors import CORSMiddleware
|
| 3 |
-
from app.api.routes import router as api_router
|
| 4 |
-
|
| 5 |
-
app = FastAPI()
|
| 6 |
-
|
| 7 |
-
app.add_middleware(
|
| 8 |
-
CORSMiddleware,
|
| 9 |
-
allow_origins=["*"],
|
| 10 |
-
allow_credentials=True,
|
| 11 |
-
allow_methods=["*"],
|
| 12 |
-
allow_headers=["*"],
|
| 13 |
-
)
|
| 14 |
-
|
| 15 |
-
app.include_router(api_router)
|
| 16 |
-
|
| 17 |
-
@app.get("/")
|
| 18 |
-
def root():
|
| 19 |
-
return {"message": "🚀 FastAPI MongoDB with JWT & bcrypt is running"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|