mirror of
https://github.com/astaxie/beego.git
synced 2024-11-16 12:50:55 +00:00
15 lines
221 B
Go
15 lines
221 B
Go
|
package controllers
|
||
|
|
||
|
import (
|
||
|
"github.com/astaxie/beego"
|
||
|
)
|
||
|
|
||
|
type MainController struct {
|
||
|
beego.Controller
|
||
|
}
|
||
|
|
||
|
func (this *MainController) Get() {
|
||
|
this.Data["host"] = this.Ctx.Request.Host
|
||
|
this.TplNames = "index.tpl"
|
||
|
}
|