Skip to content

Commit

Permalink
Reformat ToDoController
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafa-eltaher committed Aug 12, 2016
1 parent c1747ae commit aa60406
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ToDoController {
@Autowired
ToDoService toDoService;

@RequestMapping(value = "", method = RequestMethod.GET, produces = { "application/json" })
@RequestMapping(value = "", method = RequestMethod.GET, produces = {"application/json"})
@ResponseStatus(HttpStatus.OK)
@ResponseBody
public List<ToDoItem> getToDos() {
Expand All @@ -35,11 +35,11 @@ public List<ToDoItem> getToDos() {
return result;
}

@RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = { "application/json" })
@RequestMapping(value = "/{id}", method = RequestMethod.GET, produces = {"application/json"})
@ResponseStatus(HttpStatus.OK)
@ResponseBody
@PostAuthorize("hasPermission(returnObject,'VIEW_TODO')")
public ToDoItem getToDo(@PathVariable("id") Long id) {
public ToDoItem getToDo(@PathVariable("id") Long id) {
log.info("[getToDo] started ...");
ToDoItem result = toDoService.getToDo(id);
log.info("[getToDo] done, result: " + result);
Expand Down

0 comments on commit aa60406

Please sign in to comment.