Created
June 17, 2011 23:25
-
-
Save tauren/1032582 to your computer and use it in GitHub Desktop.
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
# Static site | |
app.get '/site/*:name', (req,res) -> | |
console.log 'Getting file ' + req.params.name | |
res.sendfile __dirname + '/public/' + req.params.name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment