Class: Geminabox::Hostess

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

Instance Method Summary collapse

Instance Method Details

#serveObject



8
9
10
11
# File 'lib/geminabox/hostess.rb', line 8

def serve
  headers["Cache-Control"] = 'no-transform'
  send_file(File.expand_path(File.join(Geminabox.data, *request.path_info)), :type => response['Content-Type'])
end