From c989c273c4ce2dcdc4faba5cc70c9bf6322f44f8 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 14 Apr 2026 02:34:41 -0400 Subject: [PATCH] [F] Fix wacca: Path variable --- src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt b/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt index 87178ac0..e8c9ae7f 100644 --- a/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt +++ b/src/main/java/icu/samnyan/aqua/sega/wacca/WaccaServer.kt @@ -79,9 +79,9 @@ class WaccaServer { /** Handle all requests */ @API("/api/**") - fun handle(req: HttpServletRequest, @RB body: String): Any { + fun handle(req: HttpServletRequest, @RB body: String, @PV version: String): Any { // Normalize path - val path = req.requestURI.removePrefix("/g/wacca").removePrefix("/WaccaServlet") + val path = req.requestURI.removePrefix("/g/SDFE/${version}").removePrefix("/WaccaServlet") .removePrefix("/api").removePrefix("/").lowercase() if (path !in cacheMap && path !in handlerMap) {