2023-03-09 21:37:33 -05:00
|
|
|
class StageManager
|
|
|
|
class IndexController
|
2023-03-02 13:24:24 -05:00
|
|
|
|
2023-03-09 21:37:33 -05:00
|
|
|
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
|
2023-03-02 13:24:24 -05:00
|
|
|
|
2023-03-09 21:37:33 -05:00
|
|
|
end
|
2023-03-02 13:24:24 -05:00
|
|
|
end
|