Files
2025-08-12 20:44:15 -04:00

14 lines
462 B
JavaScript

const minisrv_service_file = true;
const docName = request_headers.query.docName;
const page = session_data.pagestore.loadPage(docName);
const style = request_headers.query.styleName.replace (' ', '_')
page.style = style;
session_data.pagestore.editPage(page, docName);
headers = `300 OK
wtv-expire-all: wtv-author:/block-preview
wtv-expire-all: wtv-author:/preview
wtv-expire-all: wtv-author:/show-blocks
Location: wtv-author:/show-blocks?docName=${docName}`