Your config.ru
file seems to work okay when I test it, but it looks a little confused. Here’s a simpler example that achieves the same thing:
map "/projects" do
run Project # note run, not use
end
run Core
Now any request where the path starts with /projects
will be routed to the Project
app, and all other will go to Core
, which is associated with the root path automatically.