Spaces:
Runtime error
Runtime error
File size: 341 Bytes
4b63522 a3e3d1f 4b63522 a3e3d1f 4b63522 431b73c 26004d7 431b73c 26004d7 4b63522 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | from flask import Flask
from dotenv import load_dotenv
import os
def create_app():
load_dotenv()
app = Flask(__name__)
app.config['SECRET_KEY'] = 'your-secret-key'
from .routes import auth
from .routes import api
app.register_blueprint(auth)
app.register_blueprint(api, url_prefix='/api')
return app
|