Define connect in router