Ready to publish

This commit is contained in:
2020-09-19 09:10:53 +10:00
parent 6b7e55c05f
commit 422fff090c
2 changed files with 25 additions and 1 deletions

24
package.json Normal file
View File

@@ -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"
}

View File

@@ -13,7 +13,7 @@ const sineQL = require('../index.js');
const sine = sineQL(schema, handler); const sine = sineQL(schema, handler);
//open the end //open the end
app.post('/simpleql', async (req, res) => { app.post('/sineql', async (req, res) => {
const [code, result] = await sine(req.body); const [code, result] = await sine(req.body);
res.status(code).send(result); res.status(code).send(result);
}); });