fix xml?
This commit is contained in:
parent
da32c3bdfa
commit
88d47ef535
@ -40,7 +40,8 @@ public class IndexController {
|
|||||||
return ResponseEntity.ok(Map.of("key", id));
|
return ResponseEntity.ok(Map.of("key", id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/{id}")
|
|
||||||
|
@GetMapping(value = "/{id}", produces = "text/html")
|
||||||
public String paste(@PathVariable String id, Model model) {
|
public String paste(@PathVariable String id, Model model) {
|
||||||
try {
|
try {
|
||||||
Paste paste = pasteService.getPaste(id);
|
Paste paste = pasteService.getPaste(id);
|
||||||
@ -53,7 +54,7 @@ public class IndexController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(value = "/raw/{id}")
|
@GetMapping(value = "/raw/{id}", produces = "text/html")
|
||||||
public String pasteRaw(@PathVariable String id, Model model) {
|
public String pasteRaw(@PathVariable String id, Model model) {
|
||||||
try {
|
try {
|
||||||
Paste paste = pasteService.getPaste(id);
|
Paste paste = pasteService.getPaste(id);
|
||||||
|
Reference in New Issue
Block a user