about summary refs log tree commit diff
path: root/app/serializers/nodeinfo/discovery_serializer.rb
blob: 07ab2a6eee304e3f64bf51ab626e3969ec93c89f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class NodeInfo::DiscoverySerializer < ActiveModel::Serializer
  include RoutingHelper

  attribute :links

  def links
    [{ rel: 'http://nodeinfo.diaspora.software/ns/schema/2.0', href: nodeinfo_schema_url }]
  end
end