restructure: код в site/, согласно платформе Flask

This commit is contained in:
2026-06-13 11:37:13 +04:00
parent 77dff4d3d4
commit bbf65527b1
3 changed files with 21 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/health")
def health():
return {"status": "ok"}
if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000, debug=True)
+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Contracts App</title>
<style>
body { font-family: sans-serif; max-width: 600px; margin: 100px auto; text-align: center; }
h1 { color: #333; }
</style>
</head>
<body>
<h1>Contracts App 🚀</h1>
<p>Сервис работает.</p>
</body>
</html>