about summary refs log tree commit diff
path: root/app/controllers/atom_controller.rb
blob: f9d8a4582b57fc569adfc54d5bf9ccc11033a583 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class AtomController < ApplicationController
  before_filter :set_format

  def user_stream
    @account = Account.find_by!(id: params[:id], domain: nil)
  end

  def entry
    @entry = StreamEntry.find(params[:id])
  end

  private

  def set_format
    request.format = 'xml'
    response.headers['Content-Type'] = 'application/atom+xml'
  end
end