mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat: add chat sharing API (#24968)
This commit is contained in:
@@ -1298,6 +1298,10 @@ func New(options *Options) *API {
|
||||
})
|
||||
r.Route("/{chat}", func(r chi.Router) {
|
||||
r.Use(httpmw.ExtractChatParam(options.Database))
|
||||
r.Route("/acl", func(r chi.Router) {
|
||||
r.Get("/", api.getChatACL)
|
||||
r.Patch("/", api.patchChatACL)
|
||||
})
|
||||
r.Get("/", api.getChat)
|
||||
r.Patch("/", api.patchChat)
|
||||
r.Get("/messages", api.getChatMessages)
|
||||
|
||||
Reference in New Issue
Block a user