diff --git a/package.json b/package.json new file mode 100644 index 0000000..67644c5 --- /dev/null +++ b/package.json @@ -0,0 +1,24 @@ +{ + "name": "sineql", + "version": "0.2.0", + "description": "A simple to use graphQL clone", + "main": "index.js", + "scripts": { + "test": "cd test-server && npm install && npm run node" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Ratstail91/sineQL.git" + }, + "keywords": [ + "graphql", + "rest", + "query" + ], + "author": "Kayne Ruse", + "license": "ISC", + "bugs": { + "url": "https://github.com/Ratstail91/sineQL/issues" + }, + "homepage": "https://github.com/Ratstail91/sineQL#readme" +} diff --git a/test-server/server.js b/test-server/server.js index 8dcf239..f5e2efa 100644 --- a/test-server/server.js +++ b/test-server/server.js @@ -13,7 +13,7 @@ const sineQL = require('../index.js'); const sine = sineQL(schema, handler); //open the end -app.post('/simpleql', async (req, res) => { +app.post('/sineql', async (req, res) => { const [code, result] = await sine(req.body); res.status(code).send(result); });