MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / game_view

Function game_view

codeclash/viewer/app.py:1110–1118  ·  view source on GitHub ↗

Static-friendly game viewer route using path parameters

(folder_path)

Source from the content-addressed store, hash-verified

1108@app.route("/game/<path:folder_path>")
1109@print_timing
1110def game_view(folder_path):
1111 """Static-friendly game viewer route using path parameters"""
1112 # Validate the selected folder exists and is a game folder
1113 folder_path_obj = LOG_BASE_DIR / folder_path
1114
1115 if not folder_path_obj.exists() or not is_game_folder(folder_path_obj):
1116 return redirect(url_for("game_picker"))
1117
1118 return render_game_viewer(folder_path_obj, folder_path)
1119
1120
1121@app.route("/picker")

Callers 1

mainFunction · 0.90

Calls 2

is_game_folderFunction · 0.85
render_game_viewerFunction · 0.85

Tested by

no test coverage detected