@@ -500,7 +500,7 @@ def __init__(
500500 ]
501501 ] = None ,
502502 app_mode : str = get_option ('external_function.app_mode' ),
503- url : str = get_option ('external_function.url' ),
503+ url : str = get_option ('external_function.url' ) + "invoke" ,
504504 data_format : str = get_option ('external_function.data_format' ),
505505 data_version : str = get_option ('external_function.data_version' ),
506506 link_name : Optional [str ] = get_option ('external_function.link_name' ),
@@ -652,6 +652,18 @@ async def __call__(
652652 func_info : Dict [str , Any ] = {}
653653 if func_endpoint is not None :
654654 func , func_info = func_endpoint
655+
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
655667
656668 # Call the endpoint
657669 if method == 'POST' and func is not None and path == self .invoke_path :
@@ -884,6 +896,7 @@ def register_functions(
884896 for link in links :
885897 cur .execute (f'DROP LINK { link } ' )
886898 for func in self .get_create_functions (replace = replace ):
899+ print ("FUNC: " , func )
887900 cur .execute (func )
888901
889902 def drop_functions (
0 commit comments