Skip to content

Commit

Permalink
allow DN guests to geocode locations
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeping-h committed Sep 16, 2024
1 parent f8a994d commit de53b55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public LLMAnalyticsDto getLLMAnalytics(AnalyticsRequestDto llmAnalyticsRequest)
public SearchDto search(UUID appId, String query) {
ResponseEntity<SearchDto> response = llmAnalyticsRestTemplate
.exchange(String.format("/search?appId=%s&query=%s", appId, query), GET,
httpEntityWithUserBearerAuthIfPresent(null),
httpEntityWithUserOrDefaultBearerAuth(null),
new ParameterizedTypeReference<>() {});
return response.getBody();
}

public ResponseEntity<?> logSearchClick(SearchClickRequestDto searchClickRequest) {
return llmAnalyticsRestTemplate
.exchange("/search/click", POST,
httpEntityWithUserBearerAuthIfPresent(searchClickRequest),
httpEntityWithUserOrDefaultBearerAuth(searchClickRequest),
new ParameterizedTypeReference<>() {});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
@RestController
@RequestMapping("/search")
@RequiredArgsConstructor
@PreAuthorize("isAuthenticated()")
public class SearchController {

private final InsightsLLMApiClient llmAnalyticsClient;
Expand Down

0 comments on commit de53b55

Please sign in to comment.