defines the route type and the lifecycles

the route struct is used for one route e.g. “/hello”