cake-erp-challenge/api/app.py

13 lines
286 B
Python
Raw Permalink Normal View History

2021-10-17 17:59:27 -04:00
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
2021-10-18 17:37:24 -04:00
from flask_migrate import Migrate
2021-10-17 17:59:27 -04:00
app = Flask(__name__)
app.config.from_object('api.config')
db = SQLAlchemy(app)
ma = Marshmallow(app)
2021-10-18 17:37:24 -04:00
Migrate(app, db)
2021-10-17 17:59:27 -04:00
import api.routes.routes