Added API routes to provide some information for JS; added CoffeeScript to grab benchmark results for a test
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user