Skip to content

Commit

Permalink
chore(examples):
Browse files Browse the repository at this point in the history
 - update examples
 - add headers/cookies example
  • Loading branch information
thib3113 committed May 9, 2024
1 parent e4941fc commit 79db006
Show file tree
Hide file tree
Showing 8 changed files with 338 additions and 303 deletions.
74 changes: 38 additions & 36 deletions examples/multiple-moleculer-servers/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions examples/multiple-moleculer-servers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
],
"author": "",
"devDependencies": {
"@types/jest": "^29.5.10",
"@types/node": "^20.10.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.11",
"moleculer-repl": "^0.7.4",
"openapi-types": "^12.1.3",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},
"dependencies": {
"@spailybot/moleculer-auto-openapi": "^0.1.12",
"@spailybot/moleculer-auto-openapi": "^1.3.1",
"fastest-validator": "^1.18.0",
"find-free-ports": "^3.1.1",
"moleculer": "^0.14.32",
"moleculer": "^0.14.33",
"moleculer-web": "^0.10.7"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default class OpenApiService extends Service<OpenApiMixinSettings & Molec
mixins: [OpenApiMixin],
settings: {
rest: '/',
schemaPath: '/openapi/openapi.json',
openApiPaths: {
schemaPath: '/openapi/openapi.json'
},
openapi: {
info: {
title: process.env.npm_package_name ? `${process.env.npm_package_name} API` : 'My API',
Expand Down

0 comments on commit 79db006

Please sign in to comment.