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

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