Added API routes to provide some information for JS; added CoffeeScript to grab benchmark results for a test

This commit is contained in:
2025-06-19 00:38:36 -04:00
parent d17b66920a
commit 8cd47d7e70
8 changed files with 96 additions and 16 deletions

View File

@@ -40,11 +40,9 @@ class GameData < Sinatra::Base
get '/test/:test_id' do
tst = Test.where(id: params[:test_id]).first()
benchmarks = Benchmark.order(:name).all()
erb :'test/view', locals: {
title: tst.name,
test: tst,
benchmarks: benchmarks
test: tst
}
end