update for tech summit workshop

This commit is contained in:
David
2020-09-23 14:46:48 -04:00
parent a651b9cd73
commit a066ed3bd1
8 changed files with 149 additions and 4 deletions
+7
View File
@@ -20,5 +20,12 @@ func (s *Server) BuildRoutes() http.Handler {
r.Get("/", s.getData)
})
r.Route("/click", func(r chi.Router) {
r.Use(s.rateLimiter)
r.Use(s.faulty)
r.Post("/", s.handleClick)
})
return r
}