Spaces:
Running
Running
Update visualblocks/server.py
Browse files- visualblocks/server.py +2 -0
visualblocks/server.py
CHANGED
@@ -308,6 +308,8 @@ def Server(
|
|
308 |
@app.route("/<path:path>")
|
309 |
def get_static(path):
|
310 |
"""Handler for serving static resources."""
|
|
|
|
|
311 |
return send_from_directory(site_root_path, path)
|
312 |
|
313 |
# Start background server.
|
|
|
308 |
@app.route("/<path:path>")
|
309 |
def get_static(path):
|
310 |
"""Handler for serving static resources."""
|
311 |
+
if path == "":
|
312 |
+
path = "index.html"
|
313 |
return send_from_directory(site_root_path, path)
|
314 |
|
315 |
# Start background server.
|