Added some more tests; changed URLs for model list pages and added redirects
This commit is contained in:
@@ -7,6 +7,10 @@ require_relative '../models/benchmark'
|
||||
class BenchmarkController < BaseController
|
||||
|
||||
get '/benchmark' do
|
||||
redirect('/benchmark/list')
|
||||
end
|
||||
|
||||
get '/benchmark/list' do
|
||||
benchmarks = Benchmark.reverse(:updated_at).limit(10).all()
|
||||
|
||||
erb :'benchmark/index', locals: {
|
||||
|
Reference in New Issue
Block a user