making the FeatureListController more generic
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / controller / DescriptionListController.java
index ccfccb48f2c509cb001fa371b5dcf460ce7f1acd..7eeeed2b66daa3d0299b8e235ff961ff64836b27 100644 (file)
@@ -33,7 +33,7 @@ import eu.etaxonomy.cdm.model.description.FeatureTree;
  * @date 24.03.2009\r
  */\r
 @Controller\r
-@RequestMapping(value = {"/*/description", "/*/featuretree"})\r
+@RequestMapping(value = {"/description"})\r
 public class DescriptionListController extends BaseListController<DescriptionBase, IDescriptionService> {\r
        \r
        @Autowired\r
@@ -43,7 +43,7 @@ public class DescriptionListController extends BaseListController<DescriptionBas
                        new String[]{\r
                                "representations",\r
                                "root.feature.representations",\r
-                               "root.children.feature.representations",\r
+                               "root.children.feature.representations"\r
                        });\r
 \r
        /* (non-Javadoc)\r
@@ -55,7 +55,7 @@ public class DescriptionListController extends BaseListController<DescriptionBas
                this.service = service;\r
        }\r
        \r
-       @RequestMapping(method = RequestMethod.GET, value="/*/featuretree")\r
+       @RequestMapping(method = RequestMethod.GET, value="/featureTree")\r
        public List<FeatureTree> doGetFeatureTrees(HttpServletRequest request, HttpServletResponse response) throws IOException {\r
                \r
                List<FeatureTree> obj = featureTreeService.list(null,null,null,null,FEATURETREE_INIT_STRATEGY);\r