You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by mi...@apache.org on 2018/11/06 05:53:14 UTC
[incubator-dubbo-ops] branch develop updated: update env path
variable
This is an automated email from the ASF dual-hosted git repository.
min pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new 6a1b59d update env path variable
6a1b59d is described below
commit 6a1b59d65a713ad6f58f8d543fecd6fc8c6b3353
Author: nzomkxia <z8...@gmail.com>
AuthorDate: Tue Nov 6 13:53:14 2018 +0800
update env path variable
---
.../java/org/apache/dubbo/admin/controller/ServiceController.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/controller/ServiceController.java b/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/controller/ServiceController.java
index 34b38e4..501376d 100644
--- a/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/controller/ServiceController.java
+++ b/dubbo-admin-backend/src/main/java/org/apache/dubbo/admin/controller/ServiceController.java
@@ -46,7 +46,7 @@ public class ServiceController {
@RequestMapping(method = RequestMethod.GET)
public List<ServiceDTO> searchService(@RequestParam String pattern,
- @RequestParam(required = false) String filter) {
+ @RequestParam(required = false) String filter,@PathVariable String env) {
List<Provider> allProviders = providerService.findAll();
Set<String> serviceUrl = new HashSet<>();
@@ -94,7 +94,7 @@ public class ServiceController {
}
@RequestMapping(value = "/{service}", method = RequestMethod.GET)
- public ServiceDetailDTO serviceDetail(@PathVariable String service) {
+ public ServiceDetailDTO serviceDetail(@PathVariable String service, @PathVariable String env) {
service = service.replace("*", "/");
List<Provider> providers = providerService.findByService(service);