Skip to content

Commit

Permalink
registered index blueprint to root
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed Feb 18, 2024
1 parent 6864d03 commit 883fe5d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"""

from flask import Flask, jsonify
from endpoints.index import index_bp

def create_app():
"""
Expand All @@ -12,8 +13,6 @@ def create_app():
"""
app = Flask(__name__)

@app.route("/")
def hello():
return jsonify({"Message": "Hello World!"})
app.register_blueprint(index_bp)

return app

0 comments on commit 883fe5d

Please sign in to comment.