web: display API documentation

Co-Authored-by: iGor milhit <igor@milhit.ch>
web
iGor milhit 2026-01-15 16:32:39 +01:00
parent ab5c5f4fbc
commit 3061646718
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 17 additions and 7 deletions

View File

@ -1,5 +1,7 @@
// web/src/pages/About.jsx
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';
function About() {
return (
<>
@ -46,13 +48,21 @@ function About() {
Outils
</h2>
</header>
<p>
<ul>
<li>FastAPI.</li>
<li>React et Vite.</li>
<li>Pico CSS.</li>
</ul>
</p>
<ul>
<li>
FastAPI, qui devrait répondre sur les adresses
suivantes&thinsp;:
<ul>
<li>
<a href={`${API_URL}/docs`}>
{API_URL}/docs
</a>(Swagger UI).
</li>
</ul>
</li>
<li>React et Vite.</li>
<li>Pico CSS.</li>
</ul>
</article>
</main>
</>