1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-22 13:04:19 +00:00
pds-2021-g2-nest/code/backend/nest_backend/routes/doa.py

17 lines
462 B
Python
Raw Normal View History

2021-04-19 14:14:51 +00:00
"""
Page that displays a message if the server is on
"""
2021-04-22 14:54:27 +00:00
from flask import render_template, abort, jsonify, request
from ..database import *
2021-04-19 14:23:50 +00:00
def page_doa():
"""
Dead or Alive page. If a client sees this, the server is probably fine.
:return: A friendly and calming message, that makes you happy that the server is not on fire.
"""
2021-04-22 14:54:27 +00:00
if request.method == "GET":
return "If you see this, the server is fine."
return "Hello there."