diff --git a/app/routes.py b/app/routes.py index 49a249e..331d46b 100644 --- a/app/routes.py +++ b/app/routes.py @@ -279,6 +279,11 @@ def git_update() -> None: subprocess.Popen(['bash', '-c', "test -f " + script + " && " + script]) +@writing_blueprint.route('/status', methods=['GET']) +def status_page() -> Response: + status_message = f'Currently running on {os.environ.get("UNDERCOVER_SERVER_NAME")} server' + return make_response(render_template('error.jinja2', status=200, error_text=status_message), 200) + @writing_blueprint.route('/', methods=['POST']) def generate_pdf() -> Response: email_address = session.get('username')