InstitutionsController.js 290 B

12345678910111213
  1. const { affiliateUsers } = require('./InstitutionsManager')
  2. module.exports = {
  3. confirmDomain(req, res, next) {
  4. const { hostname } = req.body
  5. affiliateUsers(hostname, function (error) {
  6. if (error) {
  7. return next(error)
  8. }
  9. res.sendStatus(200)
  10. })
  11. },
  12. }