Skip to content

Commit

Permalink
Taking out fix for marklogic-community#31
Browse files Browse the repository at this point in the history
  • Loading branch information
grtjn committed Sep 16, 2015
1 parent 7aa3cf7 commit 1fabd70
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions app/templates/node-server/node-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,13 @@ app.use(expressSession({

app.use(cookieParser());
app.use(bodyParser.urlencoded({extended: true}));
app.use(logger('dev'));

app.use('/v1', require('./proxy'));

// [GJo] (#31) Moved this till after /v1 proxying, otherwise it might try to parse uploaded binaries as json..
app.use(bodyParser.json());
app.use(logger('dev'));

app.use('/api', require('./routes'));

app.use('/v1', require('./proxy'));

app.use('/create', express.static('./build/index.html'));
app.use('/profile', express.static('./build/index.html'));

Expand Down

0 comments on commit 1fabd70

Please sign in to comment.