├── .gitignore ├── README.md ├── app.js ├── bin ├── cli.js └── www ├── doc.md ├── package.json ├── routes └── index.js ├── test ├── posts.get ├── posts.json.get └── posts.json.get?a=1&b=2 └── views ├── error.jade └── layout.jade /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/README.md -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/app.js -------------------------------------------------------------------------------- /bin/cli.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/bin/cli.js -------------------------------------------------------------------------------- /bin/www: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/bin/www -------------------------------------------------------------------------------- /doc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/doc.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/package.json -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/routes/index.js -------------------------------------------------------------------------------- /test/posts.get: -------------------------------------------------------------------------------- 1 | { 2 | "code": 1 3 | } 4 | -------------------------------------------------------------------------------- /test/posts.json.get: -------------------------------------------------------------------------------- 1 | { 2 | "code": 2 3 | } 4 | -------------------------------------------------------------------------------- /test/posts.json.get?a=1&b=2: -------------------------------------------------------------------------------- 1 | { 2 | "code": 3 3 | } 4 | -------------------------------------------------------------------------------- /views/error.jade: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/views/error.jade -------------------------------------------------------------------------------- /views/layout.jade: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jayin/json-file-server/HEAD/views/layout.jade --------------------------------------------------------------------------------