Skip to content

Commit

Permalink
global: split REST endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez committed Jan 20, 2020
1 parent 01c6402 commit 67c6cda
Show file tree
Hide file tree
Showing 11 changed files with 2,349 additions and 2,304 deletions.
12 changes: 10 additions & 2 deletions reana_workflow_controller/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ def create_app(config_mapping=None):

app.secret_key = "super secret key"
# Register API routes
from .rest import restapi_blueprint # noqa
app.register_blueprint(restapi_blueprint, url_prefix='/api')
from reana_workflow_controller.rest import (
workflows_session,
workflows_status,
workflows_workspace,
workflows,
) # noqa
app.register_blueprint(workflows_session.blueprint, url_prefix='/api')
app.register_blueprint(workflows.blueprint, url_prefix='/api')
app.register_blueprint(workflows_status.blueprint, url_prefix='/api')
app.register_blueprint(workflows_workspace.blueprint, url_prefix='/api')
app.session = Session
return app
Loading

0 comments on commit 67c6cda

Please sign in to comment.