stage-manager/app/routes/index.rb

16 lines
325 B
Ruby

class StageManager
class IndexController
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
end