stage-manager/lib/routes/index.rb

15 lines
275 B
Ruby

namespace '/' do
get '' do
channels = Channel.reverse(:updated_at).limit(10).all()
videos = Video.reverse(:updated_at).limit(10).all()
erb :index, :locals => {
:title => 'Dashboard',
:channels => channels,
:videos => videos
}
end
end