This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/app' | |
class MediaServerController < Rack::App | |
# this will serve files from the project root public folder | |
# one folder can only be mounted to one mount point. in this case '/' | |
serve_files_from '/public' | |
# this will mount the assets folder from the relative "media_server_controller" directory | |
# ("./media_server_controller/assets/**/*") and mount to the current controller /assets mount point |
NewerOlder