mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-11 21:39:00 +00:00
feat: register draft API endpoints
This commit is contained in:
@@ -66,6 +66,10 @@ func initHandlers(g *fastglue.Fastglue, hub *ws.Hub) {
|
||||
g.POST("/api/v1/conversations", perm(handleCreateConversation, "conversations:write"))
|
||||
g.PUT("/api/v1/conversations/{uuid}/custom-attributes", auth(handleUpdateConversationCustomAttributes))
|
||||
g.PUT("/api/v1/conversations/{uuid}/contacts/custom-attributes", auth(handleUpdateContactCustomAttributes))
|
||||
// Draft endpoints
|
||||
g.POST("/api/v1/conversations/{uuid}/draft", auth(handleUpsertConversationDraft))
|
||||
g.GET("/api/v1/conversations/{uuid}/draft", auth(handleGetConversationDraft))
|
||||
g.DELETE("/api/v1/conversations/{uuid}/draft", auth(handleDeleteConversationDraft))
|
||||
|
||||
// Search.
|
||||
g.GET("/api/v1/conversations/search", perm(handleSearchConversations, "conversations:read"))
|
||||
|
||||
Reference in New Issue
Block a user