Class: Geminabox::Hostess

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

Instance Method Summary collapse

Instance Method Details

#serveObject



6
7
8
# File 'lib/geminabox/hostess.rb', line 6

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