cc-core-cli 1.0.52 → 1.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,14 +20,20 @@ export class AppController {
|
|
|
20
20
|
return this.appService.init();
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@Get("/all_x_routes/:method")
|
|
23
|
+
@Get("/all_x_routes/:method/:entity")
|
|
24
24
|
listAllRoutes(@Param() params: any): any {
|
|
25
|
-
const { method } = params;
|
|
25
|
+
const { method, entity } = params;
|
|
26
26
|
if (_.isEmpty(method)) {
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
const result = CONST.ENDPOINT_PATHS.filter(
|
|
30
30
|
p => p.method.toLowerCase() === method.toLowerCase()
|
|
31
31
|
);
|
|
32
|
+
if (_.isEmpty(entity) || entity === "undefined") {
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
return result.filter(
|
|
36
|
+
r => r.path.indexOf(entity) === 0 || r.path.indexOf(":entity") === 0
|
|
37
|
+
);
|
|
32
38
|
}
|
|
33
39
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg id="Layer_1" enable-background="new 0 0 523.277 523.277" height="512" viewBox="0 0 523.277 523.277" width="512" xmlns="http://www.w3.org/2000/svg"><g><path d="m489.3 135.196h-31.174l9.14-92.332c.902-9.111-5.777-17.257-14.888-18.159l-27.817-2.753c-9.652-.964-11.126 13.972-1.478 14.927l27.816 2.753c.881.087 1.526.875 1.439 1.755l-15.691 158.513h-12.376l-4.762-87.172c-.493-9.037-8.439-16.183-17.485-15.674l-42.384 2.315-5.646-40.222c-1.259-8.974-9.78-15.392-18.751-14.136l-138.99 19.51 4.819-48.682c.051-.512.521-.877 1.052-.833l179.77 17.795c9.653.962 11.126-13.972 1.478-14.927l-179.77-17.795c-8.772-.871-16.591 5.54-17.456 14.282l-5.178 52.306-93.289 13.095c-8.717 1.224-14.815 9.297-13.595 17.997l5.255 37.438h-45.362c-15.626 0-28.338 12.728-28.338 28.373v331.336c0 15.645 12.712 28.372 28.338 28.372h50.662c9.697 0 9.697-15 0-15h-50.662c-7.355 0-13.338-5.999-13.338-13.372v-331.337c0-7.374 5.983-13.373 13.338-13.373h68.513l19.164 59.503c.998 3.1 3.882 5.201 7.139 5.201h373.846v280.004c0 7.374-5.983 13.372-13.338 13.372h-360.662c-9.697 0-9.697 15 0 15h360.661c15.626 0 28.338-12.728 28.338-28.372v-331.335c0-15.645-12.712-28.373-28.338-28.373zm-86.456-23.165c.981.038 1.545.543 1.689 1.515l4.717 86.354h-252.938l-4.001-73.251c.03-.576.334-.904.913-.984zm-287.72 28.464c-.953-3.096-3.929-5.298-7.17-5.298h-13.468l-5.548-39.522c-.071-.509.299-.984.826-1.058l96.963-13.611c.118.017.233.041.353.053.251.025.5.037.748.037 1.096 0 2.143-.246 3.093-.679l146.409-20.551c.981-.045 1.585.41 1.812 1.366l5.469 38.958-192.204 10.498c-8.683.474-15.547 8.085-15.072 16.779l3.956 72.434h-7.033zm336.597 59.406 4.92-49.704h32.659c7.355 0 13.338 5.999 13.338 13.373v36.332h-50.917z"/><path d="m400.215 448.21c4.142 0 7.5-3.358 7.5-7.5v-68.483c0-4.142-3.358-7.5-7.5-7.5h-277.153c-4.142 0-7.5 3.358-7.5 7.5v68.483c0 4.142 3.358 7.5 7.5 7.5zm-269.653-68.483h262.153v53.483h-262.153z"/><path d="m353.328 398.969h-183.38c-9.697 0-9.697 15 0 15h183.38c9.698 0 9.698-15 0-15z"/></g></svg>
|