add a route prerequisite for /words/{id}