refactor, controller - support for query params

This commit is contained in:
Jan Prochazka
2020-01-04 09:46:29 +01:00
parent cdb66c3733
commit b6599803b7
4 changed files with 3 additions and 39 deletions

View File

@@ -14,10 +14,12 @@ module.exports = {
const dir = await datadir();
this.datastore = nedb.create(path.join(dir, 'connections.jsonl'));
},
list_meta: 'get',
async list() {
return this.datastore.find();
},
test_meta: {
method: 'post',
raw: true,