Refactor configuration methods in DB

This commit is contained in:
D. Berge
2020-09-09 15:53:01 +02:00
parent c40a859efa
commit 1a612f74d6
5 changed files with 9 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
const { setSurvey } = require('./connection');
const { setSurvey } = require('../connection');
async function get (projectId, path, opts = {}) {
const client = await setSurvey(projectId);
@@ -24,6 +24,4 @@ async function get (projectId, path, opts = {}) {
}
}
module.exports = {
get
};
module.exports = get;

View File

@@ -0,0 +1,7 @@
module.exports = {
get: require('./get'),
post: require('./post'),
put: require('./put'),
delete: require('./delete')
}