raven/lib/routes/index.rb

15 lines
271 B
Ruby
Raw Normal View History

namespace '/' do
get '' do
items = Item.reverse(:updated_at).limit(10).all()
2022-12-11 21:29:18 -05:00
licenses = License.reverse(:updated_at).limit(10).all()
erb :index, :locals => {
:title => 'Dashboard',
2022-12-11 21:29:18 -05:00
:items => items,
:licenses => licenses
}
end
end