Skip to content

Commit

Permalink
Both example apps now use Static
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 18, 2010
1 parent 3bdc77c commit 3721873
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/upload/app.js
Expand Up @@ -10,6 +10,7 @@ configure(function(){
use(Session)
use(Flash)
use(Logger)
use(Static)
set('root', __dirname)
})

Expand All @@ -33,10 +34,6 @@ post('/upload', function(){
this.redirect('/upload')
})

get('/public/*', function(file){
this.sendfile(__dirname + '/public/' + file)
})

get('/*.css', function(file){
this.render(file + '.sass.css', { layout: false })
})
Expand Down

0 comments on commit 3721873

Please sign in to comment.