Skip to content

Commit 99d7656

Browse files
committed
update the baby so it work again
1 parent 54fa4cb commit 99d7656

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+6081
-2904
lines changed

Gopkg.lock

+42-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Hatcher is a slack bot written in go. It can:
2222

2323
- Start ngrok
2424

25-
``` ngork http 9191```
25+
``` ngrok http 9191```
2626

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

api/handler.go

-7
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@ func Handler(s *common.Slack) (http.Handler, error) {
1717
// main API endpoint with slack
1818
router.POST("/slack", bot.SlackPostHandler(s))
1919

20-
// API endpoints to get data from the happiness survey
21-
router.GET("/api/happiness/userdate/:userid/:date", surveyResultsUserDayHandler)
22-
router.GET("/api/happiness/userallresults/:userid", surveyResultsUserAllHandler)
23-
router.GET("/api/happiness/userdates/:userid/:date1/:date2", surveyResultsUserBetweenDatesHandler)
24-
router.GET("/api/happiness/usersallresults/:date1/:date2", surveyResultsAllUserBetweenDatesHandler)
25-
router.GET("/api/happiness/all/results", surveyResultsAllHandler)
26-
2720
//API endpoints to get informations about the slack users
2821
router.GET("/api/slack/allusers", getAllUsersHandler)
2922
router.GET("/api/slack/user/:userid", getUserHandler)

0 commit comments

Comments
 (0)