mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-05-15 16:51:03 -05:00
[F] Fix wacca: Path variable
This commit is contained in:
parent
c4c550b239
commit
c989c273c4
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user