about summary refs log tree commit diff
path: root/app/controllers/api/media_controller.rb
blob: d5a0a124a57fedeeeb4ace736ecf0fc92cba4b18 (plain) (blame)
1
2
3
4
5
6
7
8
class Api::MediaController < ApiController
  before_action :doorkeeper_authorize!
  respond_to    :json

  def create
    @media = MediaAttachment.create!(account: current_user.account, file: params[:file])
  end
end