15459cf109
Fix db.getState is not a function
2018-12-26 21:25:03 +01:00
dde5636bdb
Add option to singular routes
2018-12-25 23:47:35 +01:00
49f5583c37
Merge branch 'master' of https://github.com/typicode/json-server
2018-12-25 23:31:19 +01:00
bbc2011ec3
Add option to plural routes
2018-12-25 23:29:08 +01:00
33fcd7159c
Switch back to async
2018-11-14 12:03:05 +01:00
138a48e988
Update message
2018-10-18 14:42:18 +09:00
8471699c1d
Show proper error for PORT in use ( #864 )
...
Signed-off-by: VighneshKSP <ksp.vighnesh@gmail.com>
2018-10-18 14:33:22 +09:00
1fb65b6ecb
Upgrade to Babel 7
2018-09-12 16:42:14 +02:00
fda4e3e722
Merge branch 'master' of https://github.com/ruifortes/json-server into ruifortes-master
2018-09-11 23:47:47 +02:00
5f6f6e1cd4
Refactor
2018-06-12 21:40:40 +02:00
6cdcb32aac
CLI listen to 'localhost' by default, instead of '0.0.0.0'
2018-06-09 01:16:41 +02:00
a0e55b8ecb
Use FileSync in jsonServer.router
2018-06-05 20:08:56 +01:00
4b36016e21
Fix server watch restart\n\nstart() is now called in destroy callback. Has watch callback is beeing called twice (on windows at least) reset server variable in start()
2018-06-05 11:10:28 +01:00
4b1c6f791d
Make router accept file path again
2018-06-04 21:07:46 +01:00
913473f304
Use latest lowdb
2018-06-04 20:18:17 +01:00
50baa9e640
eslint --fix
2018-05-30 12:47:00 +02:00
e9458a6409
webpack 4 + preact ( #786 )
2018-05-30 12:39:10 +02:00
005ed73b92
Fixed eslint errors in Tests ( #728 )
...
* Fix error message construction in index.js
The error message in routes creation was not validated by eslint.
Now it is accepted as valid and every test runs well.
* Fix error message for both latest and 4 node versions
2018-04-17 00:13:54 +02:00
f5fd222ae3
added support for _delay in query string to delay response of request on per request basis ( #673 )
...
* added support for passing _delay as query parameter to delay response by X milliseconds
* added tests / fixed linting error
2017-11-06 13:10:55 +01:00
68b3b0fafb
moving logger after express.static to prevent unnecessary logging of static files with express ( #587 )
2017-11-02 22:13:42 +01:00
7c5e69ae65
Update index.html
2017-11-02 21:42:30 +01:00
7bc529de47
Remove console.log ( #677 )
2017-11-02 20:59:09 +01:00
7c32f7121f
update dependencies ( #674 )
2017-10-31 02:36:35 +01:00
84d989294b
Replace shortid to nanoid ( #655 )
2017-10-10 23:49:50 +02:00
6ca65ef982
#415 Missing body for POST request in middleware ( #576 )
...
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Added postbody as option to defaults
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Missing postbody in middleware
Added body parser to server defaults.
* Added postbody as option to defaults
* Setting bodyParser as enabled by default for cli
2017-07-14 02:41:55 +02:00
21d2fff3a9
Update rewriter ( #580 )
2017-07-05 13:17:10 +02:00
bd3fb1f8cd
Fix
2017-07-02 17:43:17 +02:00
13a231d794
Add prettier
2017-07-02 15:09:32 +02:00
12ea1a9f86
Update CLI
2017-06-28 23:12:32 +02:00
9bff1b6f3d
Foreign key suffix ( #570 )
2017-06-28 23:05:21 +02:00
9119b6e794
Fix
2017-06-28 01:17:42 +02:00
e39d25920c
Fix lint
2017-06-27 23:17:27 +02:00
f1d7677d01
Allows for alternate foreign key attribute names, eg snake case (post_id). Defaults to 'Id' ( #556 )
2017-06-27 20:28:34 +02:00
9f8b5e9800
Refactor sort
2017-05-11 13:08:55 +02:00
fc90f4a19d
Added support for multiple fields sorting ( #512 )
2017-05-09 12:56:38 +02:00
dcae2885a0
Fix #510 thanks to @robinvenneman
2017-04-12 21:16:37 +02:00
6559219acd
Update doc pointer ( #516 )
2017-04-12 20:42:20 +02:00
98e75f4bee
Style
2017-03-16 00:43:08 +01:00
e661af4317
Update
2017-03-09 00:33:24 +01:00
0cb33f8378
Update home
2017-03-08 00:33:43 +01:00
0551bd027f
Update home
2017-03-03 13:24:33 +01:00
91ae73273a
Refactor
2017-03-03 01:08:04 +01:00
946e5c5ede
Fix lint
2017-03-03 00:38:43 +01:00
392175017f
Refactor index.html
2017-03-03 00:35:52 +01:00
92532128da
Use lodash-id
2017-02-20 23:57:30 +01:00
2c6fbf35b0
Refactor
2017-02-13 20:42:20 +01:00
ffda7238dd
Pass the link to the newly created resource in the Location header ( #473 )
2017-02-13 20:25:10 +01:00
54e6d972fb
Update to lowdb 0.15
2017-02-13 20:14:09 +01:00
7ce0279878
Fix duplicate query params error (Issue: #352 ) ( #465 )
2017-02-07 00:42:00 +01:00
69321be00f
Display custom routes
2016-12-25 19:12:38 +01:00