Skip to content

Commit 55c0a90

Browse files
committed
Add policy middleware to default Server stack
1 parent 43c8e31 commit 55c0a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/index.es

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const
2-
{ auth, cors, security, compressor, negotiator, librarian, mixins, assets }
2+
{ auth, cors, security, policy, compressor, negotiator, librarian, mixins, assets }
33
= require ('middleware')
44

55

@@ -12,6 +12,7 @@ module.exports = class extends require ('koa') {
1212
stack = [
1313
cors // why is this not a function...
1414
, security () // and this IS a function?
15+
, policy () // and this IS a function?
1516
].concat ( stack )
1617

1718
for (let middleware of stack)

0 commit comments

Comments
 (0)