diff --git a/app.ts b/app.ts index 252682d..7182ce3 100644 --- a/app.ts +++ b/app.ts @@ -37,7 +37,7 @@ app.use( swaggerUi.serve, swaggerUi.setup(undefined, { swaggerOptions: { - url: '/public/swagger.json' + url: '/swagger.json' } }) ); diff --git a/swagger.json b/swagger.json new file mode 100644 index 0000000..ee0723e --- /dev/null +++ b/swagger.json @@ -0,0 +1,26 @@ +{ + "components": { + "examples": {}, + "headers": {}, + "parameters": {}, + "requestBodies": {}, + "responses": {}, + "schemas": {}, + "securitySchemes": {} + }, + "info": { + "title": "plutodev_express_api", + "version": "1.0.0", + "license": { + "name": "ISC" + }, + "contact": {} + }, + "openapi": "3.0.0", + "paths": {}, + "servers": [ + { + "url": "/" + } + ] +} \ No newline at end of file diff --git a/tsoa.json b/tsoa.json index 47b9acc..cbdcaae 100644 --- a/tsoa.json +++ b/tsoa.json @@ -2,7 +2,7 @@ "entryFile": "app.ts", "noImplicitAdditionalProperties": "throw-on-extras", "spec": { - "outputDirectory": "public", + "outputDirectory": ".", "specVersion": 3 } }