Skip to content

Commit

Permalink
changes for integration with tyk
Browse files Browse the repository at this point in the history
  • Loading branch information
mavemuri committed Dec 2, 2020
1 parent a62c331 commit a93749b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/java/kafdrop/Kafdrop.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
import org.springframework.core.*;
import org.springframework.core.env.*;
import org.springframework.web.servlet.config.annotation.*;
import org.springframework.http.HttpStatus;

import java.io.*;
import java.nio.charset.*;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/kafdrop/controller/ClusterController.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static BuildProperties blankBuildProperties() {
return new BuildProperties(properties);
}

@RequestMapping("/")
@RequestMapping("/overview")
public String clusterInfo(Model model,
@RequestParam(value = "filter", required = false) String filter) {
model.addAttribute("bootstrapServers", kafkaConfiguration.getBrokerConnect());
Expand Down Expand Up @@ -93,7 +93,7 @@ public String clusterInfo(Model model,
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Success", response = ClusterInfoVO.class)
})
@RequestMapping(path = "/", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
@RequestMapping(path = "/overview", produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
public @ResponseBody ClusterInfoVO getCluster() {
final var vo = new ClusterInfoVO();
vo.brokers = kafkaMonitor.getBrokers();
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/includes/header.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
<div id="title" class="col-md-10">
<h1 class="app-name brand mb-0">
<a href="<@spring.url '/'/>">Kafdrop</a>
<a href="<@spring.url '/overview'/>">Kafdrop</a>
</h1>
</div>
<div id="github-star" class="col-md-1">
Expand Down

0 comments on commit a93749b

Please sign in to comment.