writing function for routes

does this work? looks like it's missing a ')'