feat: use client-friendly public file links
This commit is contained in:
@@ -652,7 +652,7 @@ func (h *NodeHandler) renderPublicUnavailable(w http.ResponseWriter, node *model
|
||||
}
|
||||
|
||||
func (h *NodeHandler) publicURL(token string) string {
|
||||
return strings.TrimRight(h.cfg.PublicBaseURL, "/") + "/api/files/public/" + token
|
||||
return strings.TrimRight(h.cfg.PublicBaseURL, "/") + "/files/share/" + token
|
||||
}
|
||||
|
||||
func (h *NodeHandler) publicNodeURL(token, nodeID string) string {
|
||||
|
||||
Reference in New Issue
Block a user