Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Merge branch 'thughes-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
chocoladisco committed Feb 27, 2017
2 parents fded039 + 50a9bb6 commit 99030a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@
"start": "node lib/app.js"
},
"dependencies": {
"body-parser": "^1.14.0",
"decompress-zip": "0.0.4",
"dirty": "0.9.7",
"express": "3.x",
"express": "^4.13.3",
"formidable": "~1.0.14",
"fs-plus": "0.10.0",
"github-releases": "0.1.x",
"glob": "3.x",
"grunt": "^0.4.5",
"jade": "~0.35.0",
"method-override": "^2.3.5",
"minidump": "0.3.0",
"mkdirp": "~0.3.5",
"node-uuid": "~1.4.1",
Expand Down
9 changes: 5 additions & 4 deletions src/app.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
bodyParser = require 'body-parser'
methodOverride = require('method-override')
path = require 'path'
express = require 'express'
reader = require './reader'
Expand All @@ -16,10 +18,9 @@ db.on 'load', ->

app.set 'views', path.resolve(__dirname, '..', 'views')
app.set 'view engine', 'jade'
app.use express.json()
app.use express.urlencoded()
app.use express.methodOverride()
app.use app.router
app.use bodyParser.json()
app.use bodyParser.urlencoded({extended: true})
app.use methodOverride()
app.use (err, req, res, next) ->
res.send 500, "Bad things happened:<br/> #{err.message}"

Expand Down

0 comments on commit 99030a1

Please sign in to comment.