mirror of
https://github.com/astaxie/beego.git
synced 2025-07-06 10:20:18 +00:00
simplify beego
This commit is contained in:
@ -7,6 +7,7 @@ import (
|
||||
"html/template"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
"strconv"
|
||||
)
|
||||
@ -145,3 +146,8 @@ func (c *Controller) ServeXml() {
|
||||
c.Ct.ContentType("xml")
|
||||
c.Ct.ResponseWriter.Write(content)
|
||||
}
|
||||
|
||||
func (c *Controller) Input() url.Values {
|
||||
c.Ct.Request.ParseForm()
|
||||
return c.Ct.Request.Form
|
||||
}
|
||||
|
Reference in New Issue
Block a user