Skip to content

Commit 5b1b06b

Browse files
committed
fix minor issues and manual testing
1 parent 4b49f93 commit 5b1b06b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

services/api-server/src/simcore_service_api_server/api/routes/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
async def ping(
1414
wb_api_rpc: Annotated[WbApiRpcClient, Depends(get_wb_api_rpc_client)],
1515
):
16-
return wb_api_rpc.ping()
16+
return await wb_api_rpc.ping()

services/web/server/src/simcore_service_webserver/application.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
""" Main application
2-
3-
"""
1+
"""Main application"""
42

53
import logging
64
from pprint import pformat
@@ -23,6 +21,7 @@
2321
from .email.plugin import setup_email
2422
from .exporter.plugin import setup_exporter
2523
from .folders.plugin import setup_folders
24+
from .functions.plugin import setup_functions
2625
from .garbage_collector.plugin import setup_garbage_collector
2726
from .groups.plugin import setup_groups
2827
from .invitations.plugin import setup_invitations
@@ -133,6 +132,9 @@ def create_application() -> web.Application:
133132
# folders
134133
setup_folders(app)
135134

135+
# functions
136+
setup_functions(app)
137+
136138
# projects
137139
setup_projects(app)
138140

services/web/server/src/simcore_service_webserver/functions/_controller_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@router.expose()
1313
async def ping(app) -> str:
14-
return "pong"
14+
return "pong from webserver"
1515

1616

1717
async def register_rpc_routes_on_startup(app: web.Application):

services/web/server/src/simcore_service_webserver/functions/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from . import _controller_rpc
44

55

6-
def setup(app: web.Application):
6+
def setup_functions(app: web.Application):
77
app.on_startup.append(_controller_rpc.register_rpc_routes_on_startup)

0 commit comments

Comments
 (0)