scala-fix changes

Signed-off-by: hrj <harshad.rj@gmail.com>
This commit is contained in:
hrj
2021-04-18 18:37:11 +05:30
parent 55288d3346
commit 32169dbe80
5 changed files with 94 additions and 59 deletions

View File

@@ -9,7 +9,7 @@ import org.limium.picoserve
import org.limium.picoserve.Server.ByteResponse
class Server(port: Int) {
val server = picoserve.Server.builder()
val server: picoserve.Server = picoserve.Server.builder()
.port(8888)
.POST("/v1/captcha", (request) => {
val json = parse(request.getBodyString())