视频通话功能实现
This commit is contained in:
@@ -17,5 +17,8 @@ import (
|
||||
func Register(r *server.Hertz) {
|
||||
|
||||
root := r.Group("/", rootMw()...)
|
||||
root.POST("/audioCall", append(_callMw(), audioAndVideoCalls.Call)...)
|
||||
root.POST("/audioCall", append(_audiocallMw(), audioAndVideoCalls.AudioCall)...)
|
||||
root.DELETE("/room", append(_roomremoveMw(), audioAndVideoCalls.RoomRemove)...)
|
||||
root.GET("/roomlist", append(_roomlistMw(), audioAndVideoCalls.RoomList)...)
|
||||
root.POST("/videoCall", append(_videocallMw(), audioAndVideoCalls.VideoCall)...)
|
||||
}
|
||||
|
@@ -20,3 +20,28 @@ func _callMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _call0Mw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _audiocallMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _videocallMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _roomlistMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
||||
func _roomremoveMw() []app.HandlerFunc {
|
||||
// your code...
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user