View definition

(*ControllerRegister).AddMethod

Defined in github.com/astaxie/beego/router.go

Description

AddMethod add http method router usage:

AddMethod("get","/api/:id", func(ctx *context.Context){
      ctx.Output.Body("hello world")
})

AddMethod is referenced in 1 repository

github.com/astaxie/beego