Commit 2354891c authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

add /solutions/my endpoint

parent bf3e805b
......@@ -74,6 +74,13 @@ public class SolutionsResource
));
}
@GET
@Path("/my")
public Map<Integer, List<Flag>> getTeamSummittedFlags(@Auth User user) {
Map<Integer, List<Flag>> teamSolutions = solutionsRepository.getTeamSolutions(teamsRepository.getTeamByUser(user));
return teamSolutions;
}
@GET
@Path("/all")
public Map<String, Map<Integer, Integer>> getTeamsSolutions()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment