Onionr/static-data/default-plugins/rpc/rpc/pluginrpcmethods.py

8 lines
192 B
Python
Raw Normal View History

2022-08-16 14:55:01 +00:00
from jsonrpc import dispatcher
from onionrplugins.pluginapis import plugin_apis
def add_plugin_rpc_methods():
for method in plugin_apis:
dispatcher[method] = plugin_apis[method]