convert-service: лого через /static/logo.svg (как в Сверке)
This commit is contained in:
@@ -53,7 +53,7 @@ h1{font-size:22px;font-weight:700;margin-bottom:6px}
|
||||
</head>
|
||||
<body>
|
||||
<div class="logo-bar">
|
||||
<img src="' + LOGO_DATA_URI + '" alt="Nubes" style="height:28px">
|
||||
<img src="/static/logo.svg" alt="Nubes" style="height:28px">
|
||||
<span class="badge">КОНВЕРТЕР</span>
|
||||
<span class="badge" style="background:var(--brand-grey-light);color:var(--nubes-dark);">v__VERSION__</span>
|
||||
</div>
|
||||
@@ -180,6 +180,11 @@ def convert():
|
||||
def health():
|
||||
return {"ok": True, "version": VERSION}
|
||||
|
||||
@app.route("/static/logo.svg")
|
||||
def logo():
|
||||
from flask import Response
|
||||
return Response(_LOGO_SVG, mimetype="image/svg+xml")
|
||||
|
||||
if __name__ == "__main__":
|
||||
import io
|
||||
app.run(host="0.0.0.0", port=5000)
|
||||
|
||||
Reference in New Issue
Block a user