adds events resource to routes