repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git]
/
server
/
web
/
middlewares
/
is-phone.js
blob
d3cc0a4b664a296976a53aeb100119c838c30f0a
1
'use strict';
2
3
var isPhone = require('../is-phone');
4
5
function isPhoneMiddleware(req, res, next) {
6
req.isPhone = isPhone(req);
7
next();
8
}
9
10
module.exports = isPhoneMiddleware;