fix: remove redundante names
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 37s

This commit is contained in:
2024-12-04 23:22:25 +01:00
parent 2d5f42bb28
commit a69e9537d2
15 changed files with 188 additions and 190 deletions

View File

@@ -6,7 +6,7 @@ import (
"net/http"
)
func Cors(serverSettings *types.ServerSettings) func(http.Handler) http.Handler {
func Cors(serverSettings *types.Settings) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Access-Control-Allow-Origin", serverSettings.BaseUrl)