mirror of https://github.com/halo-dev/halo
Comment a warning on MainController redirection
parent
c7d88b1d1f
commit
079928feed
|
@ -37,10 +37,12 @@ public class MainController {
|
||||||
this.haloProperties = haloProperties;
|
this.haloProperties = haloProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
// @GetMapping("/{permlink}")
|
@GetMapping("/{permlink}")
|
||||||
// public String admin(@PathVariable(name = "permlink") String permlink) {
|
@Deprecated
|
||||||
// return "redirect:/" + permlink + "/index.html";
|
public String admin(@PathVariable(name = "permlink") String permlink) {
|
||||||
// }
|
// ###WARNING!!! Here will lead to redirect to swagger-ui/index.html while accessing swagger-ui.html
|
||||||
|
return "redirect:/" + permlink + "/index.html";
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/install")
|
@GetMapping("/install")
|
||||||
public String installation() {
|
public String installation() {
|
||||||
|
|
Loading…
Reference in New Issue