diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-15 09:12:22 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-15 09:12:22 -0600 |
| commit | 8e211ff4bac177465fb9adc0bfa3744ca4e1da47 (patch) | |
| tree | 0b1e3006ca4f947d844a4f9411d4d10a41eef22e /app/controllers/sessions/dto.go | |
| parent | 564e140de454c78d7e6d34044bb78f53bd0b2bf3 (diff) | |
refactor: delete code that is now handled by envoy
Diffstat (limited to 'app/controllers/sessions/dto.go')
| -rw-r--r-- | app/controllers/sessions/dto.go | 19 |
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)) -} |
