Split the library into smaller files

This commit is contained in:
2020-09-22 08:14:25 +10:00
parent 333154fd7b
commit 7f04a656c2
10 changed files with 342 additions and 323 deletions

View File

@@ -11,9 +11,9 @@ app.use(bodyParser.text());
//test the library
const schema = require('./schema.js');
const handler = require('./handler.js');
const sineQL = require('../index.js');
const sineQL = require('../source/index.js');
const sine = sineQL(schema, handler);
const sine = sineQL(schema, handler, { debug: true });
//open the end
app.post('/sineql', async (req, res) => {