adjust for custom domain

This commit is contained in:
Pete Matsyburka
2026-02-19 15:54:15 +02:00
parent 739e2abdf8
commit 825322d489
12 changed files with 48 additions and 31 deletions
@@ -6,7 +6,7 @@ class TemplateDocumentsController < ApplicationController
FILES_TTL = 5.minutes
def index
render json: @template.schema_documents.map { |d| ActiveStorage::Blob.proxy_url(d.blob, expires_at: FILES_TTL.from_now.to_i) }
render json: @template.schema_documents.map { |d| ActiveStorage::Blob.proxy_path(d.blob, expires_at: FILES_TTL.from_now.to_i) }
end
def create