Class: Geminabox::Hostess

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

Instance Method Summary collapse

Instance Method Details

#serveObject



10
11
12
13
# File 'lib/geminabox/hostess.rb', line 10

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