aboutsummaryrefslogtreecommitdiffstats
path: root/models.js
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@eficode.com>2018-07-12 15:23:25 +0300
committerJan Tuomi <jan.tuomi@eficode.com>2018-07-12 15:23:25 +0300
commitd965ac8bb00e443c6c9ce72674b72edcaa3e9ecc (patch)
tree4bdff2f6a363675ddb6857aa374f84596507ce44 /models.js
parentc6673a1146567c397e34a49d5c0a0b57a4b56256 (diff)
Implement secrets
Diffstat (limited to 'models.js')
-rw-r--r--models.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/models.js b/models.js
index cf5137d..50ee3b8 100644
--- a/models.js
+++ b/models.js
@@ -2,7 +2,11 @@ module.exports = db => {
const endpoints = db.get('endpoints');
endpoints.createIndex({name: 1}, {unique: true});
+ const secrets = db.get('secrets');
+ secrets.createIndex({key: 1}, {unique: true});
+
return {
- endpoints
+ endpoints,
+ secrets
};
};