Add featured tags API (#11778)
* Add featured tags API * Remove show and update, change scope, fix code style
This commit is contained in:
parent
a75009a65e
commit
9c9dcf580a
4 changed files with 75 additions and 0 deletions
9
app/serializers/rest/featured_tag_serializer.rb
Normal file
9
app/serializers/rest/featured_tag_serializer.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class REST::FeaturedTagSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :statuses_count, :last_status_at
|
||||
|
||||
def id
|
||||
object.id.to_s
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue