14 lines
353 B
Go
14 lines
353 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
|
|
|
|
"go-admin/app/bell/synthetic"
|
|
)
|
|
|
|
func registerSyntheticRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
|
|
handler := synthetic.Handler{}
|
|
v1.POST("/synthetic-events", authMiddleware.MiddlewareFunc(), handler.Create)
|
|
}
|