Method
form
(
@RequestParam("key1") String key1, @RequestParam("key2") String key2)
Source from the content-addressed store, hash-verified
| 49 | public class Server { |
| 50 | |
| 51 | @PostMapping("/form") |
| 52 | public ResponseEntity<Void> form( |
| 53 | @RequestParam("key1") String key1, @RequestParam("key2") String key2) { |
| 54 | var status = !key1.equals(key2) ? BAD_REQUEST : OK; |
| 55 | return ResponseEntity.status(status).body(null); |
| 56 | } |
| 57 | |
| 58 | @PostMapping("/upload/{id}") |
| 59 | @ResponseStatus(OK) |
Callers
nothing calls this directly
Tested by
no test coverage detected