github.com/goplus/yap@v0.8.1/ytest/demo/basic/foo.gox (about)

     1  import "github.com/goplus/yap"
     2  
     3  var (
     4  	yap.App
     5  )
     6  
     7  initYap
     8  
     9  get "/p/:id", ctx => {
    10  	ctx.json {
    11  		"id": ctx.param("id"),
    12  	}
    13  }