diff --git a/server.go b/server.go index 9b36acc..7541c69 100644 --- a/server.go +++ b/server.go @@ -84,6 +84,8 @@ func RegisterRouter(router *gin.Engine) { authorized.GET("/transaction/template", service.QueryTransactionTemplates) authorized.POST("/transaction/template", service.AddTransactionTemplate) authorized.DELETE("/transaction/template", service.DeleteTransactionTemplate) + authorized.GET("/event/page", service.GetAllEvents) + authorized.POST("/event", service.AddEvent) authorized.GET("/tags", service.QueryTags) authorized.GET("/file/dir", service.QueryLedgerSourceFileDir) authorized.GET("/file/content", service.QueryLedgerSourceFileContent) diff --git a/service/events.go b/service/events.go new file mode 100644 index 0000000..21af35a --- /dev/null +++ b/service/events.go @@ -0,0 +1,17 @@ +package service + +import "github.com/gin-gonic/gin" + +type Event struct { + Date string `json:"date"` + Type string `json:"type"` + Description string `json:"description"` +} + +func GetAllEvents(c *gin.Context) { + OK(c, nil) +} + +func AddEvent(c *gin.Context) { + OK(c, nil) +}