summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-17 04:43:31 +0200
committerJannik Schönartz2018-07-17 04:43:31 +0200
commite4c4d0e3d7dc7be7ac233cd6c9b90ae92fb1a5b3 (patch)
tree0c40021f77fea9688449c9c4d6e6222a809ec3d6 /server/api/clients.js
parent[webapp] renamed components (diff)
downloadbas-e4c4d0e3d7dc7be7ac233cd6c9b90ae92fb1a5b3.tar.gz
bas-e4c4d0e3d7dc7be7ac233cd6c9b90ae92fb1a5b3.tar.xz
bas-e4c4d0e3d7dc7be7ac233cd6c9b90ae92fb1a5b3.zip
[server] Fixed eslint errors. (Standard ESLint is used)
Diffstat (limited to 'server/api/clients.js')
-rw-r--r--server/api/clients.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/server/api/clients.js b/server/api/clients.js
index 53aeb9d..f7fe455 100644
--- a/server/api/clients.js
+++ b/server/api/clients.js
@@ -1,20 +1,20 @@
/* global __appdir */
-var path = require('path');
-var db = require(path.join(__appdir, 'lib', 'sequelize'));
+var path = require('path')
+var db = require(path.join(__appdir, 'lib', 'sequelize'))
module.exports = {
- get: function(req, res) {
- //db.sequelize.authenticate()
- //.then(() => { console.log('Connection has been established successfully.'); })
- //.catch(err => { console.error('Unable to connect to the database:', err); });
-
- //db.users2.create({ username: "wasd", password: "wasd", email: "w@a.de", name: "wa"});
- db.users2.findOne({ where: { username: 'wasd' } }).then(user => {
- console.log(user.get('username'));
- });
- res.end();
- },
- post: function(req, res) {
-
- }
-} \ No newline at end of file
+ get: function (req, res) {
+ // db.sequelize.authenticate()
+ // .then(() => { console.log('Connection has been established successfully.'); })
+ // .catch(err => { console.error('Unable to connect to the database:', err); });
+
+ // db.users2.create({ username: "wasd", password: "wasd", email: "w@a.de", name: "wa"});
+ db.users2.findOne({ where: { username: 'wasd' } }).then(user => {
+ console.log(user.get('username'))
+ })
+ res.end()
+ },
+ post: function (req, res) {
+
+ }
+}