Skip to content

Commit 6e48a57

Browse files
dragonpooludomikula
authored andcommitted
fix the path issue
1 parent 2f24eda commit 6e48a57

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/npm/PrivateNpmRegistryController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public class PrivateNpmRegistryController implements PrivateNpmRegistryEndpoint{
3535
private final ApplicationServiceImpl applicationServiceImpl;
3636

3737
@Override
38-
public Mono<ResponseEntity<Resource>> getNpmPackageMeta(String applicationId, String name) {
39-
return forwardToNodeService(applicationId, name, NPM_REGISTRY_METADATA);
38+
public Mono<ResponseEntity<Resource>> getNpmPackageMeta(String applicationId, String path) {
39+
return forwardToNodeService(applicationId, path, NPM_REGISTRY_METADATA);
4040
}
4141

4242
@Override

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/npm/PrivateNpmRegistryEndpoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public interface PrivateNpmRegistryEndpoint {
2121
summary = "Get NPM registry Metadata",
2222
description = "Retrieve the metadata of private NPM registry package."
2323
)
24-
@GetMapping("/registry/{applicationId}/{name}")
25-
public Mono<ResponseEntity<Resource>> getNpmPackageMeta(@PathVariable String applicationId, @PathVariable String name);
24+
@GetMapping("/registry/{applicationId}/{*path}")
25+
public Mono<ResponseEntity<Resource>> getNpmPackageMeta(@PathVariable String applicationId, @PathVariable String path);
2626

2727
@Operation(
2828
tags = TAG_NPM_REGISTRY_MANAGEMENT,

0 commit comments

Comments
 (0)