ChandimaPrabath commited on
Commit
62cd5c9
·
1 Parent(s): 48e4191

api routes

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -15,10 +15,18 @@ def greet_json():
15
  return {"Version": "0.0.1 Alpha"}
16
 
17
  @app.post("/api/register")
18
- def register_instance():
19
  #register the instance to Instance Register
20
  pass
21
 
22
  @app.get("/api/get/file_structure")
23
- def get_file_structure():
24
- return load_balancer.file_structure
 
 
 
 
 
 
 
 
 
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
21
 
22
  @app.get("/api/get/file_structure")
23
+ async def get_file_structure():
24
+ return load_balancer.file_structure
25
+
26
+ @app.get("/api/get/film/all")
27
+ async def get_file_structure():
28
+ return load_balancer.FILM_STORE
29
+
30
+ @app.get("/api/get/tv/all")
31
+ async def get_file_structure():
32
+ return load_balancer.TV_STORE