mirror of https://github.com/IoTcat/auxpi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
532 B
19 lines
532 B
package routers |
|
|
|
import ( |
|
"github.com/astaxie/beego" |
|
"github.com/astaxie/beego/context/param" |
|
) |
|
|
|
func init() { |
|
|
|
beego.GlobalControllerRouter["auxpi/controllers/api:ApiUpLoadController"] = append(beego.GlobalControllerRouter["auxpi/controllers/api:ApiUpLoadController"], |
|
beego.ControllerComments{ |
|
Method: "AuthUpLoadHandle", |
|
Router: `/api/v1/upload/`, |
|
AllowHTTPMethods: []string{"post"}, |
|
MethodParams: param.Make(), |
|
Filters: nil, |
|
Params: nil}) |
|
|
|
}
|
|
|