json-server
Advanced tools
Comparing version 0.7.3 to 0.7.4
{ | ||
"name": "json-server", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Serves JSON files through REST routes.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -40,3 +40,3 @@ # JSON Server [![](https://travis-ci.org/typicode/json-server.svg)](https://travis-ci.org/typicode/json-server) [![](https://badge.fury.io/js/json-server.svg)](http://badge.fury.io/js/json-server) | ||
Here are all the available routes. | ||
Based on the previous `db.json`, here are all the available routes. | ||
@@ -43,0 +43,0 @@ ``` |
@@ -159,3 +159,3 @@ var express = require('express') | ||
res.jsonp(resource) | ||
res.status(201).jsonp(resource) | ||
} | ||
@@ -162,0 +162,0 @@ |
@@ -211,3 +211,3 @@ var request = require('supertest') | ||
.expect({id: 3, body: 'foo', booleanValue: true, integerValue: 1}) | ||
.expect(200) | ||
.expect(201) | ||
.end(function(err, res) { | ||
@@ -226,3 +226,3 @@ if (err) return done(err) | ||
.expect('Content-Type', /json/) | ||
.expect(200) | ||
.expect(201) | ||
.end(function(err, res) { | ||
@@ -229,0 +229,0 @@ if (err) return done(err) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30004