You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
357 B
Go

package routers
import (
v1 "goftp/controllers"
"github.com/astaxie/beego"
)
func init() {
setNs()
}
func setNs() {
ns := beego.NewNamespace("/goftp",
beego.NSNamespace("/file",
beego.NSInclude(
&v1.FileOptUploadController{},
)),
beego.NSNamespace("/ip",
beego.NSInclude(
&v1.IpController{},
)),
)
beego.AddNamespace(ns)
}