Create server.py
Browse files
server.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from fastapi import FastAPI
|
| 2 |
+
|
| 3 |
+
app = FastAPI()
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
@app.post("/reset")
|
| 7 |
+
async def reset():
|
| 8 |
+
return {"status": "ok"}
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
@app.get("/status")
|
| 12 |
+
async def status():
|
| 13 |
+
return {"status": "online"}
|