Spaces:
Runtime error
Runtime error
File size: 469 Bytes
821839d 96b27c1 5f08945 821839d 5f08945 821839d 96b27c1 c7bd9d5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
import os
path = os.getcwd()
app = FastAPI()
app.mount("/", StaticFiles(directory=f"{path}/frontend",html = True), name="frontend")
### API Routes ###
#@app.get("/")
#def read_root():
# return "Marx is asleep right now..?"
#
#@app.post("/api/v1/data")
#def post_data_Marx():
# return "Json Data Here"
#
#@app.post("/api/v2/data")
#def post_data_Student():
# return "Json Data Here"
### |