diff --git a/src/spiff_workflow_webapp/__init__.py b/src/spiff_workflow_webapp/__init__.py index bb956096..92210401 100644 --- a/src/spiff_workflow_webapp/__init__.py +++ b/src/spiff_workflow_webapp/__init__.py @@ -3,7 +3,7 @@ from flask import Flask from flask_bpmn.models.db import db from flask_bpmn.models.db import migrate -from spiff_workflow_webapp.routes.api import api +from spiff_workflow_webapp.routes.api_blueprint import api_blueprint from spiff_workflow_webapp.routes.user_blueprint import user_blueprint import flask.app @@ -22,6 +22,6 @@ def create_app() -> flask.app.Flask: migrate.init_app(app, db) app.register_blueprint(user_blueprint) - app.register_blueprint(api) + app.register_blueprint(api_blueprint) return app diff --git a/src/spiff_workflow_webapp/routes/api.py b/src/spiff_workflow_webapp/routes/api_blueprint.py similarity index 94% rename from src/spiff_workflow_webapp/routes/api.py rename to src/spiff_workflow_webapp/routes/api_blueprint.py index 069b5f22..2bc12fd4 100644 --- a/src/spiff_workflow_webapp/routes/api.py +++ b/src/spiff_workflow_webapp/routes/api_blueprint.py @@ -17,10 +17,10 @@ wf_spec_converter = BpmnWorkflowSerializer.configure_workflow_spec_converter( ) serializer = BpmnWorkflowSerializer(wf_spec_converter) -api = Blueprint("api", __name__) +api_blueprint = Blueprint("api", __name__) -@api.route("/run_process", methods=["POST"]) +@api_blueprint.route("/run_process", methods=["POST"]) def run_process(): """Run_process.""" content = request.json