Name 1 anno fa
parent
commit
a9a076b7da
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +1
    -1
      app/core/config.py
  2. +2
    -2
      app/main.py

+ 1
- 1
app/core/config.py Vedi File

@@ -3,7 +3,7 @@ class Settings:
PROJECT_VERSION: str = "1.0.0"
POSTGRES_USER: str = "VMSBase"
POSTGRES_PASSWORD = "VMSBasePass"
POSTGRES_SERVER: str = "localhost"
POSTGRES_SERVER: str = "db"
POSTGRES_PORT: str = "5432"
POSTGRES_DB: str = "VMSData"
DATABASE_URL = f"postgresql://{POSTGRES_USER}:{POSTGRES_PASSWORD}@{POSTGRES_SERVER}:{POSTGRES_PORT}/{POSTGRES_DB}"


+ 2
- 2
app/main.py Vedi File

@@ -20,9 +20,9 @@ def startup(): # start the project, and create the tables
include_routes(app)
return app

origins = ["*"]
origins = ['*']
app = startup()
app.add_middleware(CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"])
app.add_middleware(CORSMiddleware, allow_origins=["*"], allow_methods=['*'], allow_credentials=True, allow_headers=['*'], expose_headers=['*'])

# Testing stuff
@app.get("/")


Caricamento…
Annulla
Salva