find one op

This commit is contained in:
Eugen 2013-06-03 18:53:51 +03:00
parent 09ad6e1402
commit 8c532286a5
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ import org.springframework.web.util.UriTemplate;
import com.google.common.base.Preconditions; import com.google.common.base.Preconditions;
@Controller @Controller
@RequestMapping(value = "/foo") @RequestMapping(value = "/foos")
public class FooController { public class FooController {
@Autowired @Autowired
@ -44,7 +44,7 @@ public class FooController {
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public Foo findOne(@PathVariable("id") final Long id, final UriComponentsBuilder uriBuilder, final HttpServletResponse response) { 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) @RequestMapping(value = "admin/foo/{id}", method = RequestMethod.GET)