Update app/main.py
Browse files- app/main.py +2 -8
app/main.py
CHANGED
|
@@ -19,18 +19,12 @@ app.add_middleware(
|
|
| 19 |
allow_headers=["*"],
|
| 20 |
)
|
| 21 |
|
| 22 |
-
if __name__ == "__main__":
|
| 23 |
-
import uvicorn
|
| 24 |
-
log(f"===== Application Startup at {__import__('datetime').datetime.now().strftime('%Y-%m-%d %H:%M:%S')} =====")
|
| 25 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 26 |
-
|
| 27 |
-
|
| 28 |
# Include API routes
|
| 29 |
-
app.include_router(endpoints.router
|
| 30 |
|
| 31 |
@app.get("/")
|
| 32 |
def root():
|
| 33 |
-
return {"message": "
|
| 34 |
|
| 35 |
@app.get("/health")
|
| 36 |
def health():
|
|
|
|
| 19 |
allow_headers=["*"],
|
| 20 |
)
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
# Include API routes
|
| 23 |
+
app.include_router(endpoints.router)
|
| 24 |
|
| 25 |
@app.get("/")
|
| 26 |
def root():
|
| 27 |
+
return {"message": "Klypse API", "version": "1.0.0"}
|
| 28 |
|
| 29 |
@app.get("/health")
|
| 30 |
def health():
|