Fix API sounds/show action
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
module API
|
||||
class SoundsController < ApplicationController
|
||||
skip_before_filter :json_filter!, only: :show
|
||||
|
||||
before_action :set_sound, only: :show
|
||||
|
||||
def show
|
||||
send_file sound.path, type: sound.mime_type
|
||||
send_file @sound.path, type: @sound.mime_type
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user