Sha256: cfb0d937c40322b5be90b661aff4abf4e6bd8cb927e3a825272915a87c2617e4
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require 'rubygems' require 'capcode' $:.unshift( "../lib" ) require 'capcode/render/webdav' module Capcode # Render file from /Users/greg/temp !!! class WebDav < Route '/temp' def get http_authentication( :type => :digest, :realm => "My WebDAV Directory !!!" ) { {"greg" => "toto"} } render :webdav => "/Users/greg/temp" end def method_missing(id, *a, &b) get end end class Index < Route '/' def get render "WebDav server acces : <a href='#{URL(Capcode::WebDav)}'>#{URL(Capcode::WebDav)}</a>" end end end Capcode.run( )
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capcode-render-webdav-0.2.0 | examples/auth-webdav.rb |
capcode-render-webdav-0.1.0 | examples/auth-webdav.rb |