2023-03-02 13:24:24 -05:00
|
|
|
namespace '/' do
|
|
|
|
|
|
|
|
get '' do
|
2023-03-03 13:05:01 -05:00
|
|
|
channels = Channel.reverse(:updated_at).limit(10).all()
|
2023-03-03 15:49:09 -05:00
|
|
|
videos = Video.reverse(:updated_at).limit(10).all()
|
2023-03-02 13:24:24 -05:00
|
|
|
erb :index, :locals => {
|
2023-03-03 11:56:55 -05:00
|
|
|
:title => 'Dashboard',
|
2023-03-03 15:49:09 -05:00
|
|
|
:channels => channels,
|
|
|
|
:videos => videos
|
2023-03-02 13:24:24 -05:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|