This commit is contained in:
Piotr Dec 2025-10-06 22:39:42 +02:00
parent 604ee83631
commit d3e990384d
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
9 changed files with 118 additions and 0 deletions

39
app/templates/index.html Normal file
View file

@ -0,0 +1,39 @@
<!doctype html>
<html lang="pl">
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<style>
body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
margin: 2rem;
}
code {
background: #f4f4f4;
padding: 0.2rem 0.4rem;
border-radius: 4px;
}
a {
color: #0b5fff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<h1>{{ title }}</h1>
<p>To jest prosta strona Jinja2 serwowana przez FastAPI.</p>
<ul>
<li>UI OpenAPI: <a href="/docs">/docs</a></li>
<li>OpenAPI JSON: <a href="/openapi.json">/openapi.json</a></li>
<li>API v1: <a href="/api/v1/">/api/v1/</a></li>
</ul>
<p>Uruchamianie serwera lokalnie: <code>uv run app</code> lub <code>uv run uvicorn app.main:app --reload</code></p>
</body>
</html>