Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Remove the Slack interaction #275

Merged
merged 4 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions internal/server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ func NewRouter(c *RouterConfig) *gin.Engine {
if isSlackEnabled(c) {
slackapi := r.Group("/slack")
{
m := s.NewSlackMiddleware(&s.SlackMiddlewareConfig{
Interactor: c.Interactor,
Secret: c.ChatConfig.Secret,
})
slack := s.NewSlack(&s.SlackConfig{
ServerHost: c.Host,
ServerProto: c.Proto,
Expand All @@ -232,8 +228,6 @@ func NewRouter(c *RouterConfig) *gin.Engine {
slackapi.GET("", slack.Index)
slackapi.GET("/signin", slack.Signin)
slackapi.GET("/signout", slack.Signout)
slackapi.POST("/interact", m.Verify(), m.ParseIntr(), m.SetChatUser(), slack.Interact)
slackapi.POST("/command", m.Verify(), m.ParseCmd(), m.SetChatUser(), slack.Cmd)
Comment on lines -235 to -236
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove /interact, /command API to delete Chatops

}
}

Expand Down
Loading