📝 Added /api/v1 base path and production API URL (https://api.memorymap.fr)
continuous-integration/drone/push Build is passing Details

master
Alix JEUDI--LEMOINE 5 months ago
parent 7a465fd26c
commit 2f4250a789

@ -43,8 +43,8 @@ steps:
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/memorymap_api:latest
CONTAINERNAME: memorymap_api
IMAGENAME: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/api:latest
CONTAINERNAME: api
COMMAND: create
OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_MONGODB_URL: "mongodb://memorymap_mongodb:27017/"

@ -27,7 +27,12 @@ client = pymongo.MongoClient(MONGODB_URL, username=MONGODB_USERNAME, password=MO
db = client[MONGODB_DATABASE]
# FastAPI app instance
app = FastAPI()
app = FastAPI(
servers=[
{"url": "https://api.memorymap.fr/api/v1", "description": "Production environment"},
],
root_path="/api/v1",
)
# OAuth2 scheme
oauth2_scheme = OAuth2PasswordBearer(tokenUrl=TOKEN_URL)

Loading…
Cancel
Save