Skip to content

Commit

Permalink
remove unused endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kailashchoudhary11 committed Jul 6, 2024
1 parent b2f0141 commit 70afe99
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import (

"github.com/kailashchoudhary11/repo-guard/handlers"
"github.com/kailashchoudhary11/repo-guard/initializers"
"github.com/kailashchoudhary11/repo-guard/models"
"github.com/kailashchoudhary11/repo-guard/services"
"github.com/kailashchoudhary11/repo-guard/templates"
)

Expand All @@ -27,16 +25,6 @@ func main() {
})

router.HandleFunc("/webhook", handlers.Webhook)
router.HandleFunc("/issues", func(w http.ResponseWriter, r *http.Request) {
repo := models.Repository{
Name: "Flipkart_Clone",
Owner: models.User{
Username: "arghadipmanna101",
},
}
issues := services.FetchIssues(initializers.GithubClient, repo)
fmt.Println("The number of issues are ", len(issues))
})
fmt.Println("Service is up and running at port 8000")
http.ListenAndServe(":8000", router)
}

0 comments on commit 70afe99

Please sign in to comment.