2021-04-19 16:14:51 +02:00
|
|
|
"""
|
|
|
|
Page that displays a message if the server is on
|
|
|
|
"""
|
|
|
|
|
2021-04-22 16:54:27 +02:00
|
|
|
from flask import render_template, abort, jsonify, request
|
2021-04-21 18:47:18 +02:00
|
|
|
from ..database import *
|
|
|
|
|
|
|
|
|
2021-04-19 16:23:50 +02:00
|
|
|
def page_doa():
|
2021-04-22 18:46:41 +02:00
|
|
|
"""
|
|
|
|
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 16:54:27 +02:00
|
|
|
if request.method == "GET":
|
2021-04-22 18:46:41 +02:00
|
|
|
return "If you see this, the server is fine."
|
|
|
|
return "Hello there."
|