mirror of
https://git.envs.net/envs/ifconfig
synced 2024-11-26 06:33:46 +01:00
26 lines
1.2 KiB
Go
26 lines
1.2 KiB
Go
package routers
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"github.com/missdeer/ifconfig/controllers"
|
|
)
|
|
|
|
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")
|
|
}
|