Files
scube-server/app/controllers/sounds_controller.rb
T

7 lines
152 B
Ruby

class SoundsController < ApplicationController
def show
sound = Sound.find(params[:id])
send_file sound.path, type: sound.mime_type
end
end