refactor: 移除router包并将路由注册直接移至main.go
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"digital-human/digitalhuman/controller"
|
||||
|
||||
"gitea.com/red-future/common/http"
|
||||
)
|
||||
|
||||
func Router() {
|
||||
// 注册路由
|
||||
http.RouteRegister([]interface{}{
|
||||
controller.Audio, // 语音相关接口
|
||||
controller.CustomVoice, // 自定义语音相关接口
|
||||
controller.DigitalHuman, // 数字人相关接口
|
||||
controller.Video, // 视频相关接口
|
||||
controller.AsyncTask, // 异步任务相关接口
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user