1\
This commit is contained in:
8
template/cmd_api.template
Normal file
8
template/cmd_api.template
Normal file
@ -0,0 +1,8 @@
|
||||
package api
|
||||
|
||||
import "go-admin/app/{{.appName}}/router"
|
||||
|
||||
func init() {
|
||||
//注册路由 fixme 其他应用的路由,在本目录新建文件放在init方法
|
||||
AppRouters = append(AppRouters, router.InitRouter)
|
||||
}
|
||||
Reference in New Issue
Block a user