Skip to content

Commit

Permalink
updaet handlers for update
Browse files Browse the repository at this point in the history
  • Loading branch information
Becram committed Jul 5, 2023
1 parent e9645c0 commit bd70776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/handlers/handers.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewHandlers(r *Repository) {

// The Home function renders the home page template in Go.
func (m *Repository) Home(w http.ResponseWriter, r *http.Request) {
log.Println("path / called")
log.Println(r.Header)
}

func (m *Repository) GHWebhook(w http.ResponseWriter, req *http.Request) {
Expand Down Expand Up @@ -69,7 +69,7 @@ func (m *Repository) GHWebhook(w http.ResponseWriter, req *http.Request) {

data, err := HandlePullRequestEvent(payload.(github.PullRequestPayload))
if err != nil {
log.Println("Couldnt process", err)
log.Println("couldn't process", err)
}
m.App.MailChan <- data

Expand Down

0 comments on commit bd70776

Please sign in to comment.