mirror of
https://github.com/status-im/spiffworkflow-connector.git
synced 2025-02-22 19:48:07 +00:00
* use the Spiff Connector blueprint for all business logic -- this is now a shell that just contains the dependencies. * deal with my last minute rename of the library we now depend on. * Use the new Connector-aws repository on github, and remove that directory.
20 lines
529 B
Python
20 lines
529 B
Python
import os
|
|
|
|
from spiffworkflow_proxy.blueprint import proxy_blueprint
|
|
from flask import Flask
|
|
|
|
app = Flask(__name__)
|
|
|
|
app.config.from_pyfile("config.py", silent=True)
|
|
|
|
if app.config["ENV"] != "production":
|
|
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
|
|
|
|
# Use the SpiffConnector Blueprint, which will auto-discover any
|
|
# connector-* packages and provide API endpoints for listing and executing
|
|
# available services.
|
|
app.register_blueprint(proxy_blueprint)
|
|
|
|
if __name__ == "__main__":
|
|
app.run(host="localhost", port=5000)
|