Omkar1806 commited on
Commit
f5efb42
·
verified ·
1 Parent(s): 834956c

Create server.py

Browse files
Files changed (1) hide show
  1. server.py +13 -0
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"}