aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers/controller-catalog.controller.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2020-04-08 15:42:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-04-08 15:42:45 +0000
commit3f37233319629ac17430d075dd417e426929254c (patch)
treec6b48872f819057d40f730e12d776e7963cde397 /cds-ui/server/src/controllers/controller-catalog.controller.ts
parentb3be6e54e99ba120624f9195acd5fb0c39a0f2b4 (diff)
parent7cc92c22ac6172d6b51425d8628e431350593bca (diff)
Merge "Adding delete catalog"
Diffstat (limited to 'cds-ui/server/src/controllers/controller-catalog.controller.ts')
-rw-r--r--cds-ui/server/src/controllers/controller-catalog.controller.ts20
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);
+ }
}