From 5946df3672cb74e1fc554b27f3c937ce4112dc25 Mon Sep 17 00:00:00 2001 From: Aron Buzogany Date: Sun, 18 Feb 2024 20:44:00 +0100 Subject: [PATCH] created index blueprint --- backend/project/endpoints/index.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 backend/project/endpoints/index.py diff --git a/backend/project/endpoints/index.py b/backend/project/endpoints/index.py new file mode 100644 index 00000000..b5536eaf --- /dev/null +++ b/backend/project/endpoints/index.py @@ -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")) \ No newline at end of file