Skip to content

Commit 6ec101f

Browse files
committed
add fittings/swagger_cors
1 parent 94e3ef6 commit 6ec101f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

fittings/swagger_cors.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./cors');

test/assets/project/config_pipe/default.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# values in the swagger hash are system configuration for swagger-node
22
swagger:
33

4-
fittingsDirs: [ api/fittings ]
4+
fittingsDirs: [ node_modules, api/fittings ]
55
defaultPipe: null
66
swaggerControllerPipe: swagger_controllers # defines the standard processing pipe for controllers
77

@@ -27,7 +27,7 @@ swagger:
2727
# pipe for all swagger-node controllers
2828
swagger_controllers:
2929
- onError: json_error_handler
30-
- cors
30+
- swagger_cors
3131
- swagger_params_parser
3232
- _swagger_security
3333
- _swagger_validate

0 commit comments

Comments
 (0)