1
0
mirror of https://git.envs.net/envs/ifconfig synced 2024-11-26 06:33:46 +01:00
ifconfig/routers/router.go

26 lines
1.2 KiB
Go
Raw Normal View History

2014-08-14 08:15:52 +02:00
package routers
import (
"github.com/astaxie/beego"
2014-11-17 06:40:54 +01:00
"ifconfig/controllers"
2014-08-14 08:15:52 +02:00
)
func init() {
beego.Router("/", &controllers.MainController{}, "get:Get")
beego.Router("/ip", &controllers.MainController{}, "get:GetIP")
beego.Router("/host", &controllers.MainController{}, "get:GetHost")
beego.Router("/ua", &controllers.MainController{}, "get:GetUserAgent")
beego.Router("/port", &controllers.MainController{}, "get:GetPort")
beego.Router("/keepalive", &controllers.MainController{}, "get:GetKeepAlive")
beego.Router("/lang", &controllers.MainController{}, "get:GetLang")
beego.Router("/connection", &controllers.MainController{}, "get:GetConnection")
beego.Router("/encoding", &controllers.MainController{}, "get:GetEncoding")
beego.Router("/via", &controllers.MainController{}, "get:GetVia")
beego.Router("/mime", &controllers.MainController{}, "get:GetMime")
beego.Router("/charset", &controllers.MainController{}, "get:GetCharset")
beego.Router("/forwarded", &controllers.MainController{}, "get:GetForwarded")
beego.Router("/all", &controllers.MainController{}, "get:GetAll")
beego.Router("/all.xml", &controllers.MainController{}, "get:GetAllXML")
beego.Router("/all.json", &controllers.MainController{}, "get:GetAllJSON")
}