Преглед изворни кода

Fixing deployment url hopefully

Kirk Trombley пре 5 година
родитељ
комит
5f165d97b3
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      client/.env.development
  2. 1 1
      server/app/__init__.py

+ 1 - 1
client/.env.development

@@ -1,3 +1,3 @@
-# REACT_APP_API_BASE=http://localhost:5000
+# REACT_APP_API_BASE=http://localhost:5000/terrassumptions/api
 # above can be uncommented to point to local server/app.py
 REACT_APP_MONITOR_STORE=true

+ 1 - 1
server/app/__init__.py

@@ -6,7 +6,7 @@ from fastapi.middleware.cors import CORSMiddleware
 from .api import other, game
 from .db import init_db
 
-app = FastAPI()
+app = FastAPI(openapi_prefix="/terrassumptions/api")
 
 app.include_router(other)
 app.include_router(game, prefix="/game")