stage-manager/lib/routes/index.rb

13 lines
194 B
Ruby

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