cake-erp-challenge/api/app.py

16 lines
359 B
Python
Raw Normal View History

2021-10-17 17:59:27 -04:00
#!/bin/python3
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.models.trainer
2021-10-18 15:49:47 -04:00
import api.models.pokemon_owned
2021-10-17 17:59:27 -04:00
import api.routes.routes