fnps
This commit is contained in:
21
controllers/fn_callback.go
Normal file
21
controllers/fn_callback.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
type FnController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
func (c *FnController) Msg() {
|
||||
if c.Ctx.Input.Method() == http.MethodPost {
|
||||
|
||||
c.Data["json"] = ""
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
c.Abort("404")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user