diff --git a/go_cloud/internal/http/routes.go b/go_cloud/internal/http/routes.go index faaae21..b815b7e 100644 --- a/go_cloud/internal/http/routes.go +++ b/go_cloud/internal/http/routes.go @@ -2768,7 +2768,7 @@ func getFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *databas if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -2836,7 +2836,7 @@ func createFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *data if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3105,7 +3105,7 @@ func getUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db *dat if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{ @@ -3170,7 +3170,7 @@ func createUserFileShareLinkHandler(w http.ResponseWriter, r *http.Request, db * if host == "" { host = "go.b0esche.cloud" } - fullURL := fmt.Sprintf("%s://%s/public/share/%s", scheme, host, link.Token) + fullURL := fmt.Sprintf("%s://%s/share/%s", scheme, host, link.Token) w.Header().Set("Content-Type", "application/json") json.NewEncoder(w).Encode(map[string]interface{}{