Note

This post is a thought. It's a short note that I make about someone else's content online. Learn more about the process thoughts

Here's my thought on πŸ’­ Static Files - FastAPI


Mounting static files in fastapi.


from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles

app = FastAPI()

app.mount("/static", StaticFiles(directory="static"), name="static")

This post was a thought by Waylon Walker see all my thoughts at https://waylonwalker.com/thoughts