restructure: код в site/, согласно платформе Flask
This commit is contained in:
+14
@@ -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)
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user