Files
beef/extensions/demos/api.rb
scotty.b.brown@gmail.com 35f62714b1 Moving nextgen from a branch to the trunk!!!
git-svn-id: https://beef.googlecode.com/svn/trunk@908 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-04-20 07:54:56 +00:00

20 lines
374 B
Ruby

module BeEF
module Extension
module Demos
module RegisterHttpHandlers
extend BeEF::API::Server::Handler
def self.mount_handlers(beef_server)
# mount the handler to support the demos
dir = File.dirname(__FILE__)+'/html/'
beef_server.mount('/demos/', true, WEBrick::HTTPServlet::FileHandler, dir)
end
end
end
end
end