Skip to content

Commit

Permalink
add files upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pokutnik committed Mar 31, 2013
1 parent c1b67c2 commit c6663da
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
5 changes: 2 additions & 3 deletions api_srv/app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.configure ->
app.set 'view engine', 'jade'
app.use express.static(path.join(__dirname, 'public'))
app.use express.logger('dev')
app.use express.bodyParser({uploadDir: path.join(__dirname, 'public/media' })
app.use express.bodyParser({uploadDir: path.join(__dirname, 'public/media')})
app.use express.methodOverride()
app.use express.cookieParser('secret')
app.use express.session()
Expand Down Expand Up @@ -51,8 +51,7 @@ app.get '/api/voices/', (req, res) ->
console.log req.session

app.post '/api/shouts/', (req, res) ->
console.log "BBODY", req.body
console.log "FFILES", req.files
console.log "body", req.body
res.status(201).send({
'accepted': true,
'processed': false,
Expand Down
8 changes: 0 additions & 8 deletions api_srv/routes/index.js

This file was deleted.

8 changes: 0 additions & 8 deletions api_srv/routes/user.js

This file was deleted.

0 comments on commit c6663da

Please sign in to comment.