Skip to content

Commit d7253e0

Browse files
committed
devtclt support
1 parent 5bbb463 commit d7253e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/router/NotificationRouter.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ func NewNotificationRouterImpl(notificationRestHandler restHandler.NotificationR
3232
return &NotificationRouterImpl{notificationRestHandler: notificationRestHandler}
3333
}
3434
func (impl NotificationRouterImpl) InitNotificationRegRouter(configRouter *mux.Router) {
35+
// do not remove it, this path is used in devtcl cli
36+
configRouter.Path("").
37+
HandlerFunc(impl.notificationRestHandler.SaveNotificationSettingsV2).
38+
Methods("POST")
3539
// new router to save notification settings
3640
configRouter.Path("/v2").
3741
HandlerFunc(impl.notificationRestHandler.SaveNotificationSettingsV2).

0 commit comments

Comments
 (0)