work on plugins doing http endpoints
This commit is contained in:
parent
11625b297a
commit
c89bf5b430
31 changed files with 76 additions and 17 deletions
10
onionr/httpapi/__init__.py
Executable file
10
onionr/httpapi/__init__.py
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
from flask import request
|
||||
import onionrplugins
|
||||
|
||||
def load_plugin_blueprints(flaskapp):
|
||||
for plugin in onionrplugins.get_enabled_plugins():
|
||||
plugin = onionrplugins.get_plugin(plugin)
|
||||
try:
|
||||
flaskapp.register_blueprint(getattr(plugin, 'flask_blueprint'))
|
||||
except AttributeError:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue