Mounting static files in fastapi.
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
app.mount("/static", StaticFiles(directory="static"), name="static")
Note
This post is a thought. Itβs a short note that I make about someone elseβs content online #thoughts