Skip to content
Snippets Groups Projects
Commit 71fb6e51 authored by Annika Geßmann's avatar Annika Geßmann
Browse files

gpController like Cat

parent 141a7486
No related branches found
No related tags found
No related merge requests found
package thinkTogether.groupManagement.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import thinkTogether.groupManagement.model.Group;
import thinkTogether.groupManagement.repo.IGroupRepository;
......@@ -25,7 +24,7 @@ public class GroupManagementController {
return "Hello from the GroupManagement Controller!";
}
@GetMapping(value = "/groups")
@GetMapping("/groups")
public List<Group> findAll() {
return groupRepository.findAll();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment