Gospel page audio: choose-your-path narration (case, then Guilty or Not guilty tracks), branching player, three admin audio fields, generator --sample/--only; v2.41.0
Publish Container / build (push) Successful in 16m4s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-14 08:24:33 -04:00
1 parent ad1c3e35b1
commit ae0016cfee
9 files changed
+228 -55

No files matched your search

+7 -3
View File
@@ -227,11 +227,15 @@ function buildSalvationConfirmationEmail({ name }) {
}
export function register(app) {
// The /salvation page is static HTML, so it asks the server for the narration URL set in Admin → Gospel Page.
// The /salvation page is static HTML, so it asks the server for the narration URLs set in Admin → Gospel Page.
app.get('/api/salvation-audio', (_req, res) => {
const url = sanitizeUrl(state.cachedSiteContent?.salvationAudioUrl) || ''
const c = state.cachedSiteContent ?? {}
res.set('Cache-Control', 'public, max-age=300')
res.json({ url })
res.json({
url: sanitizeUrl(c.salvationAudioUrl) || '',
guiltyUrl: sanitizeUrl(c.salvationAudioGuiltyUrl) || '',
notGuiltyUrl: sanitizeUrl(c.salvationAudioNotGuiltyUrl) || '',
})
})
app.post('/api/salvation-response', rateLimit, async (req, res) => {