update
This commit is contained in:
@@ -7,7 +7,7 @@ COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Kopiraj kod NAKON instalacije
|
||||
COPY app/ ./app/
|
||||
COPY . ./app/
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
@@ -4,8 +4,12 @@ app = FastAPI()
|
||||
|
||||
@app.get("/")
|
||||
def root():
|
||||
return {"message": "Pozdrav svijete!", "autor": "VAŠ_KORISNIK"}
|
||||
return {"message": "Pozdrav svijete! (v2)", "autor": "VAŠ_KORISNIK"}
|
||||
|
||||
@app.get("/health")
|
||||
def health():
|
||||
return {"status": "ok"}
|
||||
return {"status": "ok", "version": "2.0"}
|
||||
|
||||
@app.get("/info")
|
||||
def info():
|
||||
return {"servis": "priprema-za-kolokvij", "verzija": "2.0"}
|
||||
Reference in New Issue
Block a user