from flask import Flask, Response
import os

app = Flask(__name__)

SECRET_MARKER = "INTERNAL_CHEST"


@app.route("/secret", methods=["GET"])
def secret():
    return Response(
        f"{SECRET_MARKER}: village treasury unlocked\n",
        mimetype="text/plain",
    )


if __name__ == "__main__":
    port = int(os.environ.get("PORT", "5005"))
    app.run(host="0.0.0.0", port=port)
