Skip to content

Commit cf0ce42

Browse files
committed
Group routes in AGPL router
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 48a11f2 commit cf0ce42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/coderd.go

Lines changed: 3 additions & 1 deletion
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)