13 lines
194 B
Ruby
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
|
|
|