@@ -4,43 +4,43 @@ const path = require('path');
4
4
const fs = require ( 'fs' ) ;
5
5
6
6
let handlerNames = [
7
- 'jsengine /koa/static' ,
8
- 'jsengine /koa/requestId' ,
9
- 'jsengine /koa/requestLog' ,
10
- 'jsengine /koa/nocache' ,
7
+ 'engine /koa/static' ,
8
+ 'engine /koa/requestId' ,
9
+ 'engine /koa/requestLog' ,
10
+ 'engine /koa/nocache' ,
11
11
12
12
// this middleware adds this.render method
13
13
// it is *before error*, because errors need this.render
14
14
'render' ,
15
15
16
16
// errors wrap everything
17
- 'jsengine /koa/error' ,
17
+ 'engine /koa/error' ,
18
18
19
19
// this logger only logs HTTP status and URL
20
20
// before everything to make sure it log all
21
- 'jsengine /koa/accessLogger' ,
21
+ 'engine /koa/accessLogger' ,
22
22
23
23
// pure node.js examples from tutorial
24
24
// before session
25
25
// before form parsing, csrf checking or whatever, bare node
26
- 'jsengine /koa/nodeExample' ,
26
+ 'engine /koa/nodeExample' ,
27
27
28
28
// before anything that may deal with body
29
29
// it parses JSON & URLENCODED FORMS,
30
30
// it does not parse form/multipart
31
- 'jsengine /koa/bodyParser' ,
31
+ 'engine /koa/bodyParser' ,
32
32
33
33
// parse FORM/MULTIPART
34
34
// (many tweaks possible, lets the middleware decide how to parse it)
35
- 'jsengine /koa/multipartParser' ,
35
+ 'engine /koa/multipartParser' ,
36
36
37
37
// right after parsing body, make sure we logged for development
38
- 'jsengine /koa/verboseLogger' ,
38
+ 'engine /koa/verboseLogger' ,
39
39
40
- 'jsengine /koa/conditional' ,
40
+ 'engine /koa/conditional' ,
41
41
42
42
process . env . NODE_ENV === 'development' && 'dev' ,
43
- 'jsengine /koa/tutorial' ,
43
+ 'engine /koa/tutorial' ,
44
44
'frontpage'
45
45
] . filter ( Boolean ) ;
46
46
0 commit comments