Time for action — creating the register function to match routes