Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33e9bc9

Browse files
authored
feat: add notification preferences business logic & APIs (#14117)
1 parentd1817d1 commit33e9bc9

File tree

13 files changed

+1107
-5
lines changed

13 files changed

+1107
-5
lines changed

‎coderd/apidoc/docs.go

Lines changed: 153 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/coderd.go

Lines changed: 7 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp