Th3BossC's picture
fixing dockerfile for write issues
68c70b0
raw
history blame contribute delete
568 Bytes
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_cors import CORS
import os
db = SQLAlchemy()
SQLALCHEMY_DATABASE_URI = 'sqlite:///site.db'
def create_app():
app = Flask(__name__)
CORS(app)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///site.db'
app.config['UPLOAD_FOLDER'] = 'TranscriptApi/common/files/'
db.init_app(app)
from TranscriptApi.resources.routes import resources
app.register_blueprint(resources)
from TranscriptApi.main.routes import main
app.register_blueprint(main)
return app