UNPKG
wallids-api
Version:
latest (1.0.0)
1.0.0
Wallids Service - Node API
wallids-api
/
options.js
12 lines
(8 loc)
•
180 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
const
Options
= (
opt, res, next
) => {
console
.
log
(opt)
if
(opt.
redirect
&& opt.
href
){
return
res.
redirect
(opt.
href
) }
next
(); }
module
.
exports
=
Options