音视频模块初始化
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// Code generated by hertz generator. DO NOT EDIT.
|
||||
|
||||
package audioAndVideoCalls
|
||||
|
||||
import (
|
||||
audioAndVideoCalls "audioAndVideoCalls/biz/handler/audioAndVideoCalls"
|
||||
"github.com/cloudwego/hertz/pkg/app/server"
|
||||
)
|
||||
|
||||
/*
|
||||
This file will register all the routes of the services in the master idl.
|
||||
And it will update automatically when you use the "update" command for the idl.
|
||||
So don't modify the contents of the file, or your code will be deleted when it is updated.
|
||||
*/
|
||||
|
||||
// Register register routes based on the IDL 'api.${HTTP Method}' annotation.
|
||||
func Register(r *server.Hertz) {
|
||||
|
||||
root := r.Group("/", rootMw()...)
|
||||
root.GET("/audioCall", append(_hellomethodMw(), audioAndVideoCalls.HelloMethod)...)
|
||||
}
|
17
livekitManage/biz/router/audioAndVideoCalls/middleware.go
Normal file
17
livekitManage/biz/router/audioAndVideoCalls/middleware.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Code generated by hertz generator.
|
||||
|
||||
package audioAndVideoCalls
|
||||
|
||||
import (
|
||||
"github.com/cloudwego/hertz/pkg/app"
|
||||
)
|
||||
|
||||
func rootMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _hellomethodMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user