mirror of
https://github.com/SirBlobby/Hoya26.git
synced 2026-02-04 11:44:34 -05:00
Inital Commit
This commit is contained in:
14
backend/src/__init__.py
Normal file
14
backend/src/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
from .routes.main import main_bp
|
||||
from .routes.rag import rag_bp
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
CORS(app) # Enable CORS for all routes
|
||||
|
||||
# Register Blueprints
|
||||
app.register_blueprint(main_bp)
|
||||
app.register_blueprint(rag_bp, url_prefix='/api/rag')
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user