24 lines
744 B
Go
24 lines
744 B
Go
// Code generated by hertz generator. DO NOT EDIT.
|
|
|
|
package auth
|
|
|
|
import (
|
|
"github.com/cloudwego/hertz/pkg/app/server"
|
|
auth "userAuthCenter/biz/handler/auth"
|
|
)
|
|
|
|
/*
|
|
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.POST("/login", append(_loginMw(), auth.Login)...)
|
|
root.POST("/logout", append(_logoutMw(), auth.Logout)...)
|
|
root.POST("/refresh", append(_refreshMw(), auth.Refresh)...)
|
|
}
|