From 0606ae717f5db3206ffaf9d0e1c51e2e053e8006 Mon Sep 17 00:00:00 2001 From: SALAHkun <129999887+SALAHkun@users.noreply.github.com> Date: Fri, 21 Apr 2023 00:54:00 +0000 Subject: [PATCH] Zalthorius kun MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FastAPIApp/ ├── app.py ├── templates/ │ └── index.html ├── static/ │ └── flask-logo.png from fastapi import FastAPI, Request from fastapi.responses import HTMLResponse from fastapi.staticfiles import StaticFiles from fastapi.templating import Jinja2Templates app = FastAPI() app.mount("/static", StaticFiles(directory="static"), name="static") templates = Jinja2Templates(directory="templates") @app.get("/", response_class=HTMLResponse) async def home(request: Request): return templates.TemplateResponse("index.html", {"request": request}) Welcome to FastAPI

Welcome to FastAPI

Flask Logo

Welcome to FastAPI's documentation. Get started with installation and then get an overview with the quickstart. There is also a more detailed tutorial that shows how to create a small but complete application with FastAPI. Common patterns are described in the patterns section. The rest of the docs describe each component of FastAPI in detail, with a full reference in the API section.

--- docs/index.rst => Kira | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename docs/index.rst => Kira (100%) diff --git a/docs/index.rst b/Kira similarity index 100% rename from docs/index.rst rename to Kira