Commit ce9a0225 authored by Grzegorz Pietrusza's avatar Grzegorz Pietrusza

return flag on submitted successfully

parent 860a53bb
...@@ -52,7 +52,7 @@ public class SolutionsResource ...@@ -52,7 +52,7 @@ public class SolutionsResource
.orElseThrow(InvalidSolutionException::new); .orElseThrow(InvalidSolutionException::new);
solutionsRepository.submitSolution(new Solution(teamsRepository.getTeamByUser(user), task, flag)); solutionsRepository.submitSolution(new Solution(teamsRepository.getTeamByUser(user), task, flag));
return Response.ok().build(); return Response.ok().entity(flag).build();
} }
@GET @GET
......
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