15 lines
402 B
Go
15 lines
402 B
Go
package router
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"kra/internal/server/handler"
|
|
)
|
|
|
|
func RegisterLedger(private *gin.RouterGroup, h *handler.Ledger) {
|
|
private.GET("/sw/register/list", h.Registrations)
|
|
private.POST("/sw/register/export", h.Export(false))
|
|
private.GET("/sw/spend/list", h.Spends)
|
|
private.POST("/sw/spend/export", h.Export(true))
|
|
private.GET("/sw/serverAnalysis/games", h.Games)
|
|
}
|