Skip to content

Commit

Permalink
ENH: Add importable_formats support, fixes qiime2#115
Browse files Browse the repository at this point in the history
  • Loading branch information
maxvonhippel committed Jun 2, 2017
1 parent f0846c7 commit 5644bae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions q2studio/api/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@

@formats.route('/importable', methods=['POST'])
def get_importable_formats():
ret = [repr(t) for t in PLUGIN_MANAGER.importable_formats]
print(ret)
ret = [t.format.__name__ for t in PLUGIN_MANAGER.importable_formats]
return jsonify(ret)
3 changes: 2 additions & 1 deletion q2studio/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
from flask import Flask
from gevent.pywsgi import WSGIServer

from q2studio.api import jobs, plugins, types, workspace
from q2studio.api import jobs, plugins, types, formats, workspace
from q2studio.security import validate_request_authentication
from q2studio.headers import add_cors_headers

studio = Flask('q2studio')
studio.register_blueprint(jobs, url_prefix='/api/jobs')
studio.register_blueprint(plugins, url_prefix='/api/plugins')
studio.register_blueprint(types, url_prefix='/api/types')
studio.register_blueprint(formats, url_prefix='/api/formats')
studio.register_blueprint(workspace, url_prefix='/api/workspace')

studio.before_request(validate_request_authentication)
Expand Down

0 comments on commit 5644bae

Please sign in to comment.