fix: expose files public links through portal

This commit is contained in:
Grendgi
2026-06-16 12:45:53 +03:00
parent cf92fda20e
commit ed49eab7b9
2 changed files with 5 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ func (h *NodeHandler) CreatePublicLink(w http.ResponseWriter, r *http.Request) {
h.repo.Audit(r.Context(), userID, "files.public_link_create", "files_node", id, "{}")
writeJSON(w, http.StatusCreated, model.PublicLinkResponse{
ID: linkID,
URL: strings.TrimRight(h.cfg.PublicBaseURL, "/") + "/public/files/" + token,
URL: strings.TrimRight(h.cfg.PublicBaseURL, "/") + "/api/files/public/" + token,
ExpiresAt: req.ExpiresAt,
})
}