diff --git a/README.md b/README.md index 03adf36..996383a 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,10 @@ CLI to help you set up a Node.js TypeScript project. The setup includes: ## Usage -Run directly from GitHub repo via npx: +Run directly from npm via npx: ``` -Usage: npm exec --ignore-scripts -- github:AckeeCZ/create-node-app [OPTIONS] +Usage: npx @ackee/create-node-app [OPTIONS] Options: -d, --dir Destination directory [string] [default: "./node-app"] diff --git a/src/Bootstrap.ts b/src/Bootstrap.ts index d4ea29c..469c598 100644 --- a/src/Bootstrap.ts +++ b/src/Bootstrap.ts @@ -87,7 +87,7 @@ export class Bootstrap { } cli = cli - .version('1.0.0') + .version() .help() .check(argv => { for (const [key, val] of Object.entries(argv)) { diff --git a/starter/api/rest/src/view/rest/util/openapi.util.ts b/starter/api/rest/src/view/rest/util/openapi.util.ts index f8efc7e..49fe46f 100644 --- a/starter/api/rest/src/view/rest/util/openapi.util.ts +++ b/starter/api/rest/src/view/rest/util/openapi.util.ts @@ -245,6 +245,9 @@ export const openApiRouter = ( case 'post': router.post(route, handler) break + case 'PUT': + router.put(route, handler) + break case 'patch': router.patch(route, handler) break