summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
blob: 37e207b0419d940905fef657ab8aa2505b79ee6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* global __appdir */
var path = require('path')
var db = require(path.join(__appdir, 'lib', 'sequelize'))

module.exports = {
  get: {

    getInfo: function (req, res) {
      db.client.findOne({ where: { id: req.query.id } }).then(client => {
        res.send(client)
      })
    }

  },
  post: {

  }
}