File size: 270 Bytes
8679f57
 
 
 
 
 
 
 
604292f
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from fastapi import FastAPI
import os

app = FastAPI()


@app.get("/")
async def root():
    
    try:
        file_ls_str = ", ".join(os.listdir("large_files"))
    except:
        file_ls_str = "NA"
    
    return {"message": f"Hello World! File list: {file_ls_str}"}