mirror of
https://github.com/astaxie/beego.git
synced 2025-07-12 09:51:01 +00:00
fix #16
This commit is contained in:
@ -192,6 +192,10 @@ func (c *Controller) Redirect(url string, code int) {
|
||||
c.Ctx.Redirect(code, url)
|
||||
}
|
||||
|
||||
func (c *Controller) Abort(code string) {
|
||||
panic(code)
|
||||
}
|
||||
|
||||
func (c *Controller) ServeJson() {
|
||||
content, err := json.MarshalIndent(c.Data["json"], "", " ")
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user