pusher/biz/router/push/push.go

32 lines
991 B
Go
Raw Normal View History

2024-05-17 18:02:10 +08:00
// Code generated by hertz generator. DO NOT EDIT.
package push
import (
push "gitea.timerzz.com/kedaya_haitao/pusher/biz/handler/push"
"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) {
2024-05-20 17:57:25 +08:00
root := r.Group("/", rootMw()...)
{
_api := root.Group("/api", _apiMw()...)
{
_v1 := _api.Group("/v1", _v1Mw()...)
_v1.POST("/push", append(_pushMw(), push.Push)...)
_v1.POST("/pushers", append(_addMw(), push.Add)...)
_pushers := _v1.Group("/pushers", _pushersMw()...)
_pushers.GET("/options", append(_getpusheroptionsMw(), push.GetPusherOptions)...)
_v1.GET("/pushers", append(_listMw(), push.List)...)
}
}
2024-05-17 18:02:10 +08:00
}