UNPKG
transit-im
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.0
express-like framework for AIM bots creation (ICQ as well)
transit-im
/
middleware
/
echo
/
echo.js
16 lines
(14 loc)
•
307 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Generated by CoffeeScript 1.6.3
(
function
(
) {
module
.
exports
=
function
(
) {
return
function
(
req, res, next
) { req.
attr
(
"handler"
,
function
(
) {});
if
(req.
data
) { res.
sendBack
(req.
data
); }
else
{ res.
done
(); }
return
next
(); }; }; }).
call
(
this
);