package router

import (
	"mayfly-go/internal/sys/api"
	"mayfly-go/internal/sys/application"
	"mayfly-go/pkg/ctx"

	"github.com/gin-gonic/gin"
)

func InitSyslogRouter(router *gin.RouterGroup) {
	s := &api.Syslog{
		SyslogApp: application.SyslogApp,
	}
	sys := router.Group("syslogs")
	{
		sys.GET("", func(c *gin.Context) {
			ctx.NewReqCtxWithGin(c).Handle(s.Syslogs)
		})
	}
}
