I want to catch 2 similar route in one action block. In Rails5 I can do that easily. I first declare this:
get \':folder/:file\' => \'get#index\', :file =
Ok. I've found the answer by trying and looking to refdocs.
get '(:folder/):file', requirements: { folder: /.*/, file: /.*/ } do
This works as expected.