-
-
Save dscape/016d04a447e6acde96b1 to your computer and use it in GitHub Desktop.
harpjs + basic authentication
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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