Renamed receiver names
This commit is contained in:
+6
-6
@@ -8,18 +8,18 @@ import (
|
||||
type MainController struct{ beego.Controller }
|
||||
|
||||
|
||||
func (this *MainController) Get() {
|
||||
this.Ctx.Redirect(302, "/static/Jamstash/")
|
||||
func (c *MainController) Get() {
|
||||
c.Ctx.Redirect(302, "/static/Jamstash/")
|
||||
}
|
||||
|
||||
|
||||
func (this *MainController) Error404() {
|
||||
func (c *MainController) Error404() {
|
||||
if beego.BConfig.RunMode == beego.DEV || beego.BConfig.Log.AccessLogs {
|
||||
r := this.Ctx.Request
|
||||
r := c.Ctx.Request
|
||||
devInfo := fmt.Sprintf(" | %-10s | %-40s | %-16s | %-10s |", r.Method, r.URL.Path, " ", "notmatch")
|
||||
if beego.DefaultAccessLogFilter == nil || !beego.DefaultAccessLogFilter.Filter(this.Ctx) {
|
||||
if beego.DefaultAccessLogFilter == nil || !beego.DefaultAccessLogFilter.Filter(c.Ctx) {
|
||||
beego.Warn(devInfo)
|
||||
}
|
||||
}
|
||||
this.CustomAbort(404, "Error 404")
|
||||
c.CustomAbort(404, "Error 404")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user