@@ -653,18 +653,6 @@ async def __call__(
653653 if func_endpoint is not None :
654654 func , func_info = func_endpoint
655655
656- if method == 'GET' and (path == () or path == "" ):
657- await send ({
658- 'type' : 'http.response.start' ,
659- 'status' : 200 ,
660- 'headers' : [(b'content-type' , b'text/plain' )],
661- })
662- await send ({
663- 'type' : 'http.response.body' ,
664- 'body' : b'Server is alive!' ,
665- })
666- return
667-
668656 # Call the endpoint
669657 if method == 'POST' and func is not None and path == self .invoke_path :
670658 data_format = func_info ['data_format' ]
@@ -708,7 +696,7 @@ async def __call__(
708696 await send (self .text_response_dict )
709697
710698 # Return function info
711- elif method == 'GET' and path == self . show_function_info_path :
699+ elif method == 'GET' and ( path == "" or path == ()) :
712700 functions = self .get_function_info ()
713701 body = json .dumps (dict (functions = functions )).encode ('utf-8' )
714702 await send (self .text_response_dict )
@@ -750,6 +738,7 @@ def _locate_app_functions(self, cur: Any) -> Tuple[Set[str], Set[str]]:
750738 """Locate all current functions and links belonging to this app."""
751739 funcs , links = set (), set ()
752740 cur .execute ('SHOW FUNCTIONS' )
741+ print ("List Cur" , list (cur ))
753742 for name , ftype , _ , _ , _ , link in list (cur ):
754743 # Only look at external functions
755744 if 'external' not in ftype .lower ():
0 commit comments