Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,11 +36,10 @@ STORAGE_MAP = {
|
|
| 36 |
"music": {"folder": "music/", "index": "music/_music.json"},
|
| 37 |
"note": {"folder": "notes/", "index": "notes/_notes.json"},
|
| 38 |
"default": {"folder": "misc/", "index": "misc/_misc.json"},
|
| 39 |
-
"
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
|
| 43 |
-
}
|
| 44 |
}
|
| 45 |
|
| 46 |
# --- GLOBAL OBJECTS ---
|
|
@@ -1024,6 +1023,6 @@ async def rate_shader(shader_id: str, rating: float): # 1.0–5.0
|
|
| 1024 |
@app.get("/api/shaders")
|
| 1025 |
async def list_shaders(category: str = None, min_stars: float = 0):
|
| 1026 |
# return sorted list with description + avg stars
|
| 1027 |
-
|
| 1028 |
if __name__ == "__main__":
|
| 1029 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 36 |
"music": {"folder": "music/", "index": "music/_music.json"},
|
| 37 |
"note": {"folder": "notes/", "index": "notes/_notes.json"},
|
| 38 |
"default": {"folder": "misc/", "index": "misc/_misc.json"},
|
| 39 |
+
"shader": {
|
| 40 |
+
"folder": "shaders/",
|
| 41 |
+
"index": "shaders/_shaders.json"
|
| 42 |
+
},
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
# --- GLOBAL OBJECTS ---
|
|
|
|
| 1023 |
@app.get("/api/shaders")
|
| 1024 |
async def list_shaders(category: str = None, min_stars: float = 0):
|
| 1025 |
# return sorted list with description + avg stars
|
| 1026 |
+
|
| 1027 |
if __name__ == "__main__":
|
| 1028 |
uvicorn.run(app, host="0.0.0.0", port=7860)
|