create controller function that returns a list of jobs from a category; link function to route