Skip to content

Commit c0add7d

Browse files
add root route to confirm backend is running
1 parent b985867 commit c0add7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def main():
4646
jwt = JWTManager(app)
4747
jwt.user_lookup_loader(lookup_user)
4848

49+
@app.route("/")
50+
def index():
51+
return "PurpleForest backend is running!"
52+
4953
app.add_url_rule("/register", methods=["POST"], view_func=register)
5054
app.add_url_rule("/login", methods=["POST"], view_func=login)
5155

0 commit comments

Comments
 (0)