Skip to content

Commit

Permalink
feat: add get discord message logs api
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhuyhoang committed Oct 8, 2024
1 parent 1576bc1 commit b6fdccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/routes/v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func loadV1Routes(r *gin.Engine, h *handler.Handler, repo store.DBRepo, s *store
discordGroup.GET("/earns/total", amw.WithAuth, pmw.WithPerm(model.PermissionEmployeesDiscordRead), h.Employee.GetTotalEarn)
discordGroup.POST("/office-checkin", amw.WithAuth, pmw.WithPerm(model.PermissionTransferCheckinIcy), h.Employee.OfficeCheckIn)

discordGroup.GET("/channels/:discord_channel_id/message-logs", h.Discord.ListChannelMessageLogs)
discordGroup.GET("/channels/:discord_channel_id/message-logs", pmw.WithPerm(model.PermissionEmployeesDiscordRead), h.Discord.ListChannelMessageLogs)

discordGroup.GET("/icy-accounting", amw.WithAuth, pmw.WithPerm(model.PermissionEmployeesDiscordRead), h.Icy.Accounting)

Expand Down

0 comments on commit b6fdccd

Please sign in to comment.