create the rest reouter in the dispatcher and avoid an extra indirection