Files
Muspah/app/__init__.py
2025-11-18 15:54:21 -05:00

16 lines
371 B
Python

from flask import Flask
from .controllers.top import top_bp
import os
def create_app():
app = Flask(
'Muspah',
template_folder=os.path.join(os.path.dirname(__file__), 'templates'),
static_folder=os.path.join(os.path.dirname(__file__), 'static'),
instance_relative_config=True
)
app.register_blueprint(top_bp)
return app