discourse/app/controllers/badges_controller.rb

7 lines
160 B
Ruby
Raw Normal View History

class BadgesController < ApplicationController
def index
badges = Badge.all.to_a
render_serialized(badges, BadgeSerializer, root: "badges")
end
end