ContactBridge

Log | Files | Refs | README

__init__.py (366B)


      1 from flask import Flask
      2 from flask_cors import CORS
      3 from WebAPI import blueprint as web_api
      4 from WebInterface import web_interface
      5 import os
      6 
      7 app = Flask(__name__)
      8 app.register_blueprint(web_api, url_prefix='/api')
      9 app.register_blueprint(web_interface)
     10 app.secret_key = os.urandom(24)
     11 CORS(app, expose_headers='*')
     12 
     13 if __name__ == '__main__':
     14     app.run(debug=True)