Spaces:
Runtime error
Runtime error
| 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" | |
| ### |