Spaces:
Sleeping
Sleeping
Commit
·
f3aab4f
1
Parent(s):
4c930f9
fix routes
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ app = FastAPI()
|
|
| 14 |
def greet_json():
|
| 15 |
return {"Version": "0.0.1 Alpha"}
|
| 16 |
|
| 17 |
-
@app.post("/api/register")
|
| 18 |
async def register_instance():
|
| 19 |
#register the instance to Instance Register
|
| 20 |
pass
|
|
@@ -31,10 +31,10 @@ async def get_film_store():
|
|
| 31 |
async def get_tv_store():
|
| 32 |
return load_balancer.TV_STORE
|
| 33 |
|
| 34 |
-
@app.get("/api/film/all")
|
| 35 |
async def get_all_films_api():
|
| 36 |
return load_balancer.get_all_films()
|
| 37 |
|
| 38 |
-
@app.get("/api/tv/all")
|
| 39 |
async def get_all_tvshows_api():
|
| 40 |
return load_balancer.get_all_tv_shows()
|
|
|
|
| 14 |
def greet_json():
|
| 15 |
return {"Version": "0.0.1 Alpha"}
|
| 16 |
|
| 17 |
+
@app.post("/api/post/register")
|
| 18 |
async def register_instance():
|
| 19 |
#register the instance to Instance Register
|
| 20 |
pass
|
|
|
|
| 31 |
async def get_tv_store():
|
| 32 |
return load_balancer.TV_STORE
|
| 33 |
|
| 34 |
+
@app.get("/api/get/film/all")
|
| 35 |
async def get_all_films_api():
|
| 36 |
return load_balancer.get_all_films()
|
| 37 |
|
| 38 |
+
@app.get("/api/get/tv/all")
|
| 39 |
async def get_all_tvshows_api():
|
| 40 |
return load_balancer.get_all_tv_shows()
|