Hi, i don't know if this is a issue, so asking here.
class App < Roda
route do |r|
r.on "posts" do
post_list = {
"1" => "Post[1]",
"2" => "Post[2]",
"3" => "Post[3]"
}
r.is "" do
post_list.values.join(' | ') # when visit with GET /posts/, it get here.
end
r.is :id do |id|
post_list[id]
end
"hello" # but when visit with GET /posts (no ending slash), it get here.
end
end
end
i am new to roda, but, i think this is a strange behavior, is this behavior is intended? and why?
thank you.