auto-cms-server
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -15,4 +15,5 @@ "use strict"; | ||
AUTO_CMS_PASSWORD: '', | ||
FILE_SIZE_LIMIT: '10MB', | ||
SESSION_SECRET: '', | ||
}; | ||
(0, populate_env_1.default)(exports.env, { mode: 'halt' }); |
@@ -34,3 +34,6 @@ "use strict"; | ||
}); | ||
app.post('/auto-cms/save', session_1.guardCMS, express_1.default.text(), (req, res, next) => { | ||
app.post('/auto-cms/save', session_1.guardCMS, express_1.default.text({ | ||
type: 'text/html', | ||
limit: env_1.env.FILE_SIZE_LIMIT, | ||
}), (req, res, next) => { | ||
let pathname = req.header('X-Pathname'); | ||
@@ -37,0 +40,0 @@ if (!pathname) { |
{ | ||
"name": "auto-cms-server", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Auto turn any webpage into editable CMS without coding.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -177,3 +177,3 @@ "use strict"; | ||
headers: { | ||
"Content-Type": "text/plain", | ||
"Content-Type": "text/html", | ||
"X-Pathname": location.pathname | ||
@@ -180,0 +180,0 @@ }, |
18161
426
3