2022-09-26 15:42:45 -04:00
|
|
|
import os
|
2022-09-09 13:39:56 -04:00
|
|
|
|
2022-11-28 12:29:12 -05:00
|
|
|
from spiffworkflow_proxy.blueprint import proxy_blueprint
|
2022-10-10 12:02:36 -04:00
|
|
|
from flask import Flask
|
|
|
|
|
2022-09-09 13:39:56 -04:00
|
|
|
app = Flask(__name__)
|
|
|
|
|
2022-10-10 12:02:36 -04:00
|
|
|
app.config.from_pyfile("config.py", silent=True)
|
|
|
|
|
|
|
|
if app.config["ENV"] != "production":
|
|
|
|
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
|
2022-09-21 17:22:33 -04:00
|
|
|
|
2022-11-28 12:29:12 -05:00
|
|
|
# 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)
|
2022-09-21 17:22:33 -04:00
|
|
|
|
2022-10-10 12:02:36 -04:00
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(host="localhost", port=5000)
|