Skip to content

Commit 4952bbc

Browse files
committed
add test endpoint for push notifications
1 parent 5747b1b commit 4952bbc

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

coderd/apidoc/docs.go

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

coderd/apidoc/swagger.json

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

coderd/coderd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,6 +1203,7 @@ func New(options *Options) *API {
12031203
r.Route("/push", func(r chi.Router) {
12041204
r.Post("/subscription", api.postUserPushNotificationSubscription)
12051205
r.Delete("/subscription", api.deleteUserPushNotificationSubscription)
1206+
r.Post("/test", api.postUserPushNotificationTest)
12061207
})
12071208
})
12081209
})

docs/reference/api/notifications.md

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

0 commit comments

Comments
 (0)