diff options
author | Dan Timoney <dtimoney@att.com> | 2020-04-08 19:16:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-04-08 19:16:59 +0000 |
commit | 2973e9755cb2e7424eacaeb9e277cbd613605ec1 (patch) | |
tree | 102756e725c30051cd6883bde219253f3f3e2a19 /cds-ui/server/src/controllers/controller-catalog.controller.ts | |
parent | 01d045f109c24749c9ed46f4008f496e4bf62bcb (diff) | |
parent | d7d2b0657b18a96bc1889f8404d7b212f28922e6 (diff) |
Merge "Adding delete catalog" into frankfurt
Diffstat (limited to 'cds-ui/server/src/controllers/controller-catalog.controller.ts')
-rw-r--r-- | cds-ui/server/src/controllers/controller-catalog.controller.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cds-ui/server/src/controllers/controller-catalog.controller.ts b/cds-ui/server/src/controllers/controller-catalog.controller.ts index 20e1cded6..b55785dcc 100644 --- a/cds-ui/server/src/controllers/controller-catalog.controller.ts +++ b/cds-ui/server/src/controllers/controller-catalog.controller.ts @@ -60,14 +60,14 @@ export class ControllerCatalogController { return await this.Ccservice.getDefinitionTypes(definitionType); } - @del('/controllercatalog/model-type/{name}', { - responses: { - '200': { - content: { 'application/json': {} } - } - }, - }) - async delete(@param.path.string('name') name: string): Promise<JSON> { - return await this.Ccservice.deleteCatalog(name); - } + @del('/controllercatalog/{name}', { + responses: { + '200': { + content: { 'application/json': {} } + } + }, + }) + async delete(@param.path.string('name') name: string) { + return await this.Ccservice.delete(name); + } } |