32 lines
991 B
Go
32 lines
991 B
Go
// 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) {
|
|
|
|
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)...)
|
|
}
|
|
}
|
|
}
|