[F] Fix wacca: Path variable

This commit is contained in:
Azalea 2026-04-14 02:34:41 -04:00
parent c4c550b239
commit c989c273c4

View File

@ -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) {