40 lines
1.2 KiB
Go
40 lines
1.2 KiB
Go
// 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()...)
|
|
{
|
|
_v1 := root.Group("/v1", _v1Mw()...)
|
|
{
|
|
_audio_call := _v1.Group("/audio_call", _audio_callMw()...)
|
|
_audio_call.POST("/", append(_audiocallMw(), audioAndVideoCalls.AudioCall)...)
|
|
}
|
|
{
|
|
_room := _v1.Group("/room", _roomMw()...)
|
|
_room.DELETE("/", append(_roomremoveMw(), audioAndVideoCalls.RoomRemove)...)
|
|
}
|
|
{
|
|
_roomlist := _v1.Group("/roomlist", _roomlistMw()...)
|
|
_roomlist.GET("/", append(_roomlist0Mw(), audioAndVideoCalls.RoomList)...)
|
|
}
|
|
{
|
|
_video_call := _v1.Group("/video_call", _video_callMw()...)
|
|
_video_call.POST("/", append(_videocallMw(), audioAndVideoCalls.VideoCall)...)
|
|
}
|
|
}
|
|
}
|