update routes to use match instead of get

page 205