summaryrefslogtreecommitdiff
path: root/main.py
blob: 0f2ec169528855030e4a13ade75fea6b566cdaa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
from flask import Flask
from flask_migrate import Migrate
from app.controllers.sessions_controller import sessions_blueprint
from app.database import db

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///database.db'
migrate = Migrate(app, db)
db.init_app(app)

# Blueprints registration
app.register_blueprint(sessions_blueprint)