summaryrefslogtreecommitdiffstats
path: root/server/api/registrations.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-11-22 00:02:23 +0100
committerJannik Schönartz2018-11-22 00:02:23 +0100
commit75a3a3e8fa85a591c23c84638a74398767bce66e (patch)
tree5d93fbacc7a2671784b2d0e6f35b277d1f2c6114 /server/api/registrations.js
parent[server/models] fix backend model primary keys (diff)
downloadbas-75a3a3e8fa85a591c23c84638a74398767bce66e.tar.gz
bas-75a3a3e8fa85a591c23c84638a74398767bce66e.tar.xz
bas-75a3a3e8fa85a591c23c84638a74398767bce66e.zip
[external-backends] Fix: Delete clients in the backend is now working properly.
Diffstat (limited to 'server/api/registrations.js')
-rw-r--r--server/api/registrations.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/server/api/registrations.js b/server/api/registrations.js
index 96d50f0..6897dc9 100644
--- a/server/api/registrations.js
+++ b/server/api/registrations.js
@@ -12,14 +12,18 @@ const backendHelper = require(path.join(__appdir, 'lib', 'external-backends', 'b
/*
* TODO: CURRENTLY TEST FUNCTION
*/
-router.get('/', (req, res) => {
- db.backend.findOne({ where: { id: 1 } }).then(result => {
+noAuthRouter.get('/', (req, res) => {
+ backendHelper.deleteClients().then(r => {
+ res.send(r)
+ })
+ /*
+ db.backend.findOne({ where: { id: 1 } }).then(result => {
const b = new ExternalBackends()
const instance = b.getInstance(result.type)
instance.getClient(result.credentials, {}).then(result => {
res.status(200).send(result)
})
- })
+ })*/
})
/*