Skip to content

Commit

Permalink
[feat] create ranking api
Browse files Browse the repository at this point in the history
  • Loading branch information
Parkjyun committed Feb 12, 2024
1 parent f6c5fcf commit c8cafcf
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.pingle.pingleserver.dto.common.ApiResponse;
import org.pingle.pingleserver.dto.reponse.MeetingResponse;
import org.pingle.pingleserver.dto.reponse.PinResponse;
import org.pingle.pingleserver.dto.response.RankingResponse;
import org.pingle.pingleserver.dto.type.SuccessMessage;
import org.pingle.pingleserver.service.PinService;
import org.springframework.web.bind.annotation.*;
Expand All @@ -34,4 +35,10 @@ public ApiResponse<List<MeetingResponse>> getMeetings(@UserId Long userId,
@Nullable @RequestParam MCategory category) {
return ApiResponse.success(SuccessMessage.OK, pinService.getMeetings(pinId, userId, category));
}

@GetMapping("/ranking")
public ApiResponse<RankingResponse> getRankings(@PathVariable Long teamId) {
return ApiResponse.success(SuccessMessage.OK, pinService.getRankings(teamId));

}
}

0 comments on commit c8cafcf

Please sign in to comment.