From 3aa116af6dd2d1b3a7c1bde1c27f18da2ee04940 Mon Sep 17 00:00:00 2001 From: lihaoyi Date: Wed, 10 Jul 2024 14:24:25 +0000 Subject: [PATCH] deploy: 2616b5c21bab8985a1091c2fdc443e259cf41eb8 --- index.html | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/index.html b/index.html index 73e4858584..79ae23b9b4 100644 --- a/index.html +++ b/index.html @@ -265,7 +265,7 @@ object QueryParams extends cask.MainRoutes{ @cask.get("/article/:articleId") // Mandatory query param, e.g. HOST/article/foo?param=bar - def getArticle(articleId: Int, param: String) = { + def getArticle(articleId: Int, param: String) = { s"Article $articleId $param" } @@ -294,21 +294,6 @@ s"User $userName " + params.value } - @cask.get("/statics/foo") - def getStatic() = { - "static route takes precedence" - } - - @cask.get("/statics/:foo") - def getDynamics(foo: String) = { - s"dynamic route $foo" - } - - @cask.get("/statics/bar") - def getStatic2() = { - "another static route" - } - initialize() }