Skip to content

Commit 8c53228

Browse files
author
Eugen
committed
find one op
1 parent 09ad6e1 commit 8c53228

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spring-security-rest-full/src/main/java/org/baeldung/web/controller/FooController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import com.google.common.base.Preconditions;
2727

2828
@Controller
29-
@RequestMapping(value = "/foo")
29+
@RequestMapping(value = "/foos")
3030
public class FooController {
3131

3232
@Autowired
@@ -44,7 +44,7 @@ public FooController() {
4444
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
4545
@ResponseBody
4646
public Foo findOne(@PathVariable("id") final Long id, final UriComponentsBuilder uriBuilder, final HttpServletResponse response) {
47-
return new Foo();
47+
return service.findOne(id);
4848
}
4949

5050
@RequestMapping(value = "admin/foo/{id}", method = RequestMethod.GET)

0 commit comments

Comments
 (0)