View definition

(*ControllerRegister).AddAutoPrefix

Defined in github.com/astaxie/beego/router.go

Description

AddAutoPrefix Add auto router to ControllerRegister with prefix. example beego.AddAutoPrefix("/admin",&MainContorlller{}), MainController has method List and Page. visit the url /admin/main/list to execute List function /admin/main/page to execute Page function.

AddAutoPrefix is referenced in 1 repository

github.com/astaxie/beego