[F] Fix diva request mapping

This commit is contained in:
Azalea
2024-02-27 23:47:05 -05:00
parent b589c78cfc
commit 2fa153e569
2 changed files with 12 additions and 12 deletions

View File

@@ -140,14 +140,14 @@ public class DivaController {
}
@PostMapping(value = "", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
@PostMapping(value = "/", consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
public String formRequest(HttpServletRequest request) throws IOException {
String bodyStr = new String(request.getInputStream().readAllBytes());
Map<String, Object> body = parse(bodyStr);
String command = (String) body.getOrDefault("cmd", "");
logger.info("{}: {}", command, body.toString());
logger.info("{}: {}", command, body);
switch (command) {