mirror of
https://github.com/Ratstail91/sineQL.git
synced 2025-11-29 02:34:28 +11:00
Ready to publish
This commit is contained in:
24
package.json
Normal file
24
package.json
Normal 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"
|
||||||
|
}
|
||||||
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user