Skip to content

Instantly share code, notes, and snippets.

@dscape
Created December 9, 2013 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dscape/016d04a447e6acde96b1 to your computer and use it in GitHub Desktop.
Save dscape/016d04a447e6acde96b1 to your computer and use it in GitHub Desktop.
harpjs + basic authentication
var connect = require('connect')
, harp = require('harp')
, http = require('http')
;
var app = connect()
.use(connect.basicAuth('username', 'password'))
.use(harp.mount(__dirname))
;
http.createServer(app).listen(5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment