fixed api_blueprint name collision w/ burnettk

This commit is contained in:
jasquat 2022-05-18 11:33:28 -04:00
parent 0acef91a88
commit 56d02a83a0
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ from flask import Flask
from flask_bpmn.models.db import db from flask_bpmn.models.db import db
from flask_bpmn.models.db import migrate 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 from spiff_workflow_webapp.routes.user_blueprint import user_blueprint
import flask.app import flask.app
@ -22,6 +22,6 @@ def create_app() -> flask.app.Flask:
migrate.init_app(app, db) migrate.init_app(app, db)
app.register_blueprint(user_blueprint) app.register_blueprint(user_blueprint)
app.register_blueprint(api) app.register_blueprint(api_blueprint)
return app return app

View File

@ -17,10 +17,10 @@ wf_spec_converter = BpmnWorkflowSerializer.configure_workflow_spec_converter(
) )
serializer = BpmnWorkflowSerializer(wf_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(): def run_process():
"""Run_process.""" """Run_process."""
content = request.json content = request.json