aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/handler/git.go')
-rw-r--r--pkg/handler/git.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/pkg/handler/git.go b/pkg/handler/git.go
deleted file mode 100644
index 1ed2c49..0000000
--- a/pkg/handler/git.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package handler
-
-import (
- "log/slog"
- "net/http"
-
- "git.gabrielgio.me/cerrado/pkg/service"
- "git.gabrielgio.me/cerrado/templates"
-)
-
-type GitHandler struct {
- gitService *service.GitService
-}
-
-func NewGitHandler(gitService *service.GitService) *GitHandler {
- return &GitHandler{gitService}
-}
-
-func (g *GitHandler) List(w http.ResponseWriter, _ *http.Request) {
- repos, err := g.gitService.ListRepositories()
- if err != nil {
- slog.Error("Error listing repo", "error", err)
- return
- }
-
- gitList := &templates.GitListPage{repos}
- templates.WritePageTemplate(w, gitList)
-}