From 8c532286a524c39c48b7364da65a3106aede10f1 Mon Sep 17 00:00:00 2001 From: Eugen Date: Mon, 3 Jun 2013 18:53:51 +0300 Subject: [PATCH] find one op --- .../main/java/org/baeldung/web/controller/FooController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java b/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java index cc69d42fcb..bd69ecb36a 100644 --- a/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java +++ b/spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java @@ -26,7 +26,7 @@ import org.springframework.web.util.UriTemplate; import com.google.common.base.Preconditions; @Controller -@RequestMapping(value = "/foo") +@RequestMapping(value = "/foos") public class FooController { @Autowired @@ -44,7 +44,7 @@ public class FooController { @RequestMapping(value = "/{id}", method = RequestMethod.GET) @ResponseBody public Foo findOne(@PathVariable("id") final Long id, final UriComponentsBuilder uriBuilder, final HttpServletResponse response) { - return new Foo(); + return service.findOne(id); } @RequestMapping(value = "admin/foo/{id}", method = RequestMethod.GET)