fix: expose files public links through portal
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user