Added categories to API routing