module CategoryTree
  class Api::CategoriesController < ApplicationController
    def index
      @categories = Category.order(:name)
      @categories = @categories.search(params[:term]) if params[:term].present?
      puts @categories
    end

    def show
      @category = Category.find(params[:id])
    end
  end
end
module CategoryTree
  class Api::CategoriesController < ApplicationController
    def index
      @categories = Category.order(:name)
      @categories = @categories.search(params[:term]) if params[:term].present?
    end

    def show
      @category = Category.find(params[:id])
    end
  end
end
Clean up unnecessary puts lines
Clean up unnecessary puts lines

Signed-off-by: Joan Tiffany Siy <e0397393f2258e8c6ee68e35ceb46d86a4ac5382@teamcodeflux.com>
