eden-api-gateway/app/__init__.py

12 lines
236 B
Python
Raw Normal View History

2023-03-18 22:49:25 +00:00
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
2023-03-18 22:49:25 +00:00
app = Flask(__name__)
2023-03-19 08:02:46 +00:00
# CORS(app, supports_credentials=True)
2023-03-18 22:49:25 +00:00
app.config.from_pyfile('config.py')
db = SQLAlchemy(app)
from app import routes