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

Skip to content

Commit 8bf48d4

Browse files
committed
Group routes in AGPL router
Signed-off-by: Danny Kopping <[email protected]>
1 parent c1a42a7 commit 8bf48d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/coderd.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,9 @@ func New(options *Options) *API {
12491249
)
12501250
r.Get("/settings", api.notificationsSettings)
12511251
r.Put("/settings", api.putNotificationsSettings)
1252-
r.Get("/templates/system", api.getSystemNotificationTemplates)
1252+
r.Route("/templates", func(r chi.Router) {
1253+
r.Get("/system", api.getSystemNotificationTemplates)
1254+
})
12531255
})
12541256
})
12551257

0 commit comments

Comments
 (0)