Class: Hostess

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/hostess.rb

Instance Method Summary collapse

Instance Method Details

#serveObject



4
5
6
# File 'lib/hostess.rb', line 4

def serve
  send_file(File.expand_path(File.join(Strangebox.data, *request.path_info)), :type => response['Content-Type'])
end