more refactoring
This commit is contained in:
parent
8acbc90dbd
commit
9a9c927801
6 changed files with 30 additions and 30 deletions
|
|
@ -64,7 +64,7 @@ module.exports = function (options) {
|
|||
server = https.createServer(serverOptions, app)
|
||||
|
||||
authMiddleware = function (req, res, next) {
|
||||
lamassuConfig.isAuthorized(routes.getFingerprint(req), function (err,
|
||||
lamassuConfig.isAuthorized(routes.getDeviceId(req), function (err,
|
||||
device) {
|
||||
if (err) {
|
||||
res.json({err: 'Internal Server Error'})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue