Turn stubs into routes