Added routes for other sections, dried up API logic into a class method.