UNPKG

jsdav-ext

Version:

jsDAV allows you to easily add WebDAV support to a NodeJS application. jsDAV is meant to cover the entire standard, and attempts to allow integration using an easy to understand API.

22 lines (18 loc) 719 B
/* * @package jsDAV * @subpackage DAV * @copyright Copyright(c) 2011 Ajax.org B.V. <info AT ajax.org> * @author Mike de Boer <info AT mikedeboer DOT nl> * @license http://github.com/mikedeboer/jsDAV/blob/master/LICENSE MIT License */ "use strict"; var jsDAV = require("./../lib/jsdav"), jsDAV_Auth_Backend_File = require("./../lib/DAV/plugins/auth/file"), jsDAV_Locks_Backend_FS = require("./../lib/DAV/plugins/locks/fs"); jsDAV.debugMode = true; jsDAV.createServer({ node: __dirname + "/assets", locksBackend: jsDAV_Locks_Backend_FS.new(__dirname + "/assets"), authBackend: jsDAV_Auth_Backend_File.new(__dirname + "/assets/htdigest"), realm: "jsdavtest" }, 8000);