radames commited on
Commit
4e62450
·
verified ·
1 Parent(s): 5f29f39

Update visualblocks/server.py

Browse files
Files changed (1) hide show
  1. 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.