mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
add rate limited bull queue for institutional domain confirmation GitOrigin-RevId: 6dd38b586b7023e017d6480567a3f5faff74cbd5
14 lines
310 B
JavaScript
14 lines
310 B
JavaScript
const InstitutionsManager = require('./InstitutionsManager')
|
|
|
|
module.exports = {
|
|
confirmDomain(req, res, next) {
|
|
const { hostname } = req.body
|
|
InstitutionsManager.confirmDomain(hostname, function (error) {
|
|
if (error) {
|
|
return next(error)
|
|
}
|
|
res.sendStatus(200)
|
|
})
|
|
},
|
|
}
|