Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanigenerali committed Sep 28, 2017
1 parent 85886d5 commit 1aa389c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
if (process.env.NODE_ENV == "production") {
require('newrelic');
}
const jsonServer = require('json-server')
const server = jsonServer.create()
const router = jsonServer.router('db.json')
const middlewares = jsonServer.defaults()
if (process.env.NODE_ENV == "production") {
require('newrelic');
}

server.all('*', (req, res, next) => {
if (req.method !== 'GET') {
Expand Down

0 comments on commit 1aa389c

Please sign in to comment.