github.com/goplus/yap@v0.8.1/demo/classfile_hello/main.yap (about) 1 get "/", ctx => { 2 ctx.html `<html><body>Hello, YAP!</body></html>` 3 } 4 get "/p/:id", ctx => { 5 ctx.json { 6 "id": ctx.param("id"), 7 } 8 } 9 10 run "localhost:8080"