pup-fileserver / main.py
pup-py's picture
forgot the file
5ac84de
raw
history blame
203 Bytes
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
app = FastAPI()
# Mount the directory containing the files to be served
app.mount("/", StaticFiles(directory="."), name="files")