from flask import Flask, render_template, jsonify

app = Flask(__name__)

SURPRISE_MESSAGE = """
🎉 Happy New Year 🎉

Wishing you success, happiness,
and zero production issues 😄

– Team Schemax
"""
from flask import Flask, render_template, jsonify

app = Flask(__name__)

SURPRISE_MESSAGE = """
🎉 Happy New Year 🎉

Wishing you success, happiness,
and zero production issues 😄

– Team Schemax
"""

@app.route("/")
def home():
    return render_template("index.html")

@app.route("/get-surprise")
def get_surprise():
    return jsonify({"message": SURPRISE_MESSAGE})

if __name__ == "__main__":
    # 🔥 REQUIRED for external access on Ubuntu
    app.run(host="0.0.0.0", port=8888)
