UNPKG
node-framework
Version:
latest (0.0.7-alpha-16)
0.0.7-alpha-8
0.0.7-alpha-7
0.0.7-alpha-6
0.0.7-alpha-5
0.0.7-alpha-4
0.0.7-alpha-3
0.0.7-alpha-2
0.0.7-alpha-16
0.0.7-alpha-15
0.0.7-alpha-12
0.0.7-alpha-11
0.0.7-alpha-10
0.0.7-alpha
0.0.6-dev
0.0.5-dev
0.0.4-dev
0.0.3-dev
0.0.2-dev
0.0.1
0.0.1-dev
0.0.1-alpha-1
node-framework
node-framework
/
lib
/
components
/
server
/
middlewares
/
handler.js
12 lines
(11 loc)
•
234 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
/** *
@file
handler
*
@author
sekiyika (px.pengxing
@gmail
.com) *
@description
* */
module
.
exports
=
function
(
app
) {
return
function
handler
(
req, res, next
) { app.
emit
(
'controller:request'
, req, res, next); }; };