mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-09-26 16:38:37 +03:00
[F] Fix wacca: Path variable
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user