v0.9.40
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
var docName = request_headers.query.docName;
|
||||
var docTitle = request_headers.query.docTitle;
|
||||
|
||||
if (docTitle.length == 0) {
|
||||
headers = "400 You must enter a title for your page. Please enter a title and try again."
|
||||
} else {
|
||||
var pagedata = session_data.pagestore.loadPage(docName);
|
||||
var description = request_headers.query.docDesc
|
||||
var showtitle = request_headers.query.hideTitle
|
||||
|
||||
session_data.pagestore.editMetadata(docTitle, description, showtitle, docName);
|
||||
headers = `300 OK
|
||||
wtv-expire-all: wtv-author:/block-preview
|
||||
wtv-expire-all: wtv-author:/preview
|
||||
wtv-expire-all: wtv-author:/show-blocks
|
||||
wtv-expire-all: wtv-author:/edit-title
|
||||
wtv-expire-all: wtv-author:/documents
|
||||
wtv-expire-all: wtv-author:/doc-info
|
||||
Location: ${request_headers.query.returnPageURL}`
|
||||
}
|
||||
Reference in New Issue
Block a user