adds new route handling

should be Category.find(id).to_json