|
|
@@ -3,6 +3,7 @@ from core.config import settings, createAdminAcc |
|
|
|
from db.session import engine |
|
|
|
from db.base import Base |
|
|
|
from apis.base import api_router |
|
|
|
from fastapi.middleware.cors import CORSMiddleware |
|
|
|
|
|
|
|
|
|
|
|
def include_routes(app): # include all routes from our api/v1/ |
|
|
@@ -21,7 +22,7 @@ def startup(): # start the project, and create the tables |
|
|
|
|
|
|
|
|
|
|
|
app = startup() |
|
|
|
|
|
|
|
app.add_middleware(CORSMiddleware, allow_origins=["*"], allow_credentials=True, allow_methods=["*"], allow_headers=["*"],) |
|
|
|
|
|
|
|
# Testing stuff |
|
|
|
@app.get("/") |
|
|
|