fixed api_blueprint name collision w/ burnettk
This commit is contained in:
parent
0acef91a88
commit
56d02a83a0
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue