11 lines
286 B
Python
11 lines
286 B
Python
from fastapi import FastAPI
|
|
|
|
app = FastAPI(title="HanchuESS Solar Backend API")
|
|
|
|
@app.get("/", tags=["Root"])
|
|
def root():
|
|
return {"message": "Welcome to the HanchuESS Solar Backend API!"}
|
|
|
|
if __name__ == "__main__":
|
|
import uvicorn
|
|
uvicorn.run(app, host="0.0.0.0", port=8050) |