summaryrefslogtreecommitdiff
path: root/app/controllers/sessions/dto.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/sessions/dto.go')
-rw-r--r--app/controllers/sessions/dto.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/app/controllers/sessions/dto.go b/app/controllers/sessions/dto.go
deleted file mode 100644
index a3ce6ba..0000000
--- a/app/controllers/sessions/dto.go
+++ /dev/null
@@ -1,19 +0,0 @@
-package sessions
-
-import (
- "net/http"
-
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/app/views"
- "gitlab.com/gitlab-org/software-supply-chain-security/authorization/sparkled/pkg/pls"
-)
-
-type RedirectDTO struct {
- URL string
-}
-
-func (d *RedirectDTO) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- w.WriteHeader(http.StatusOK)
- w.Header().Add("Content-Type", "text/html")
-
- pls.LogError(r.Context(), views.Render(w, "sessions/redirect", d))
-}