Skip to content

Commit

Permalink
created index blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
AronBuzogany committed Feb 18, 2024
1 parent 883fe5d commit 5946df3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/project/endpoints/index.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Blueprint
from flask_restful import Resource

index_bp = Blueprint("index", __name__)

class Index(Resource):
def get(self):
return {"Message": "Hello World!"}

index_bp.add_url_rule("/", view_func=Index.as_view("index"))

0 comments on commit 5946df3

Please sign in to comment.