Skip to content

Commit 648e181

Browse files
committed
specific additional hidden paths for frameworks
1 parent aecae9f commit 648e181

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/main/java/hawk/controller/HiddenController.java

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,27 @@ public String index(Model model) {
1414
return "hidden";
1515
}
1616

17-
@GetMapping("/hidden/{id}")
18-
public String jwtAuth(Model model, @PathVariable("id") String id) {
19-
String title = "Random hidden page : " + id;
20-
model.addAttribute("title", title);
17+
@GetMapping("/hidden/hidden2")
18+
public String hidden(Model model) {
19+
model.addAttribute("Rando hidden page");
2120
return "hidden2";
2221
}
22+
23+
@GetMapping("/hidden/cypress")
24+
public String cypress(Model model) {
25+
model.addAttribute("title", "Hidden Page, found and tested with cypress tests");
26+
return "hidden";
27+
}
28+
29+
@GetMapping("/hidden/selenium")
30+
public String selenium(Model model) {
31+
model.addAttribute("title", "Hidden Page, found and tested with selenium tests");
32+
return "hidden";
33+
}
34+
35+
@GetMapping("/hidden/playwright")
36+
public String playwright(Model model) {
37+
model.addAttribute("title", "Hidden Page, found and tested with playwright tests");
38+
return "hidden";
39+
}
2340
}

0 commit comments

Comments
 (0)