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;
|
||||
}
|
||||
|
||||
// @GetMapping("/{permlink}")
|
||||
// public String admin(@PathVariable(name = "permlink") String permlink) {
|
||||
// return "redirect:/" + permlink + "/index.html";
|
||||
// }
|
||||
@GetMapping("/{permlink}")
|
||||
@Deprecated
|
||||
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")
|
||||
public String installation() {
|
||||
|
|
Loading…
Reference in New Issue