Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33e9bc9

Browse files
authored
feat: add notification preferences business logic & APIs (#14117)
1 parent d1817d1 commit 33e9bc9

13 files changed

+1107
-5
lines changed

coderd/apidoc/docs.go

+153
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

+139
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/coderd.go

+7
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,12 @@ func New(options *Options) *API {
10501050
})
10511051
r.Get("/gitsshkey", api.gitSSHKey)
10521052
r.Put("/gitsshkey", api.regenerateGitSSHKey)
1053+
r.Route("/notifications", func(r chi.Router) {
1054+
r.Route("/preferences", func(r chi.Router) {
1055+
r.Get("/", api.userNotificationPreferences)
1056+
r.Put("/", api.putUserNotificationPreferences)
1057+
})
1058+
})
10531059
})
10541060
})
10551061
})
@@ -1252,6 +1258,7 @@ func New(options *Options) *API {
12521258
r.Route("/templates", func(r chi.Router) {
12531259
r.Get("/system", api.systemNotificationTemplates)
12541260
})
1261+
r.Get("/dispatch-methods", api.notificationDispatchMethods)
12551262
})
12561263
})
12571264

0 commit comments

Comments
 (0)