Skip to content

Commit

Permalink
update the baby so it work again
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieudolci committed Jun 25, 2020
1 parent 54fa4cb commit 99d7656
Show file tree
Hide file tree
Showing 109 changed files with 6,081 additions and 2,904 deletions.
51 changes: 42 additions & 9 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Hatcher is a slack bot written in go. It can:

- Start ngrok

``` ngork http 9191```
``` ngrok http 9191```

- Copy and past the ngrok url into https://api.slack.com/apps/{app_id}/interactive-messages?

Expand Down
7 changes: 0 additions & 7 deletions api/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ func Handler(s *common.Slack) (http.Handler, error) {
// main API endpoint with slack
router.POST("/slack", bot.SlackPostHandler(s))

// API endpoints to get data from the happiness survey
router.GET("/api/happiness/userdate/:userid/:date", surveyResultsUserDayHandler)
router.GET("/api/happiness/userallresults/:userid", surveyResultsUserAllHandler)
router.GET("/api/happiness/userdates/:userid/:date1/:date2", surveyResultsUserBetweenDatesHandler)
router.GET("/api/happiness/usersallresults/:date1/:date2", surveyResultsAllUserBetweenDatesHandler)
router.GET("/api/happiness/all/results", surveyResultsAllHandler)

//API endpoints to get informations about the slack users
router.GET("/api/slack/allusers", getAllUsersHandler)
router.GET("/api/slack/user/:userid", getUserHandler)
Expand Down
Loading

0 comments on commit 99d7656

Please sign in to comment.