diff examples/blog/src/new.luan @ 1152:21d157b153fe

change http parameters interface
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 04 Feb 2018 19:25:12 -0700
parents c38f6619feb9
children 5dbb552075ff
line wrap: on
line diff
--- a/examples/blog/src/new.luan	Sun Feb 04 18:50:25 2018 -0700
+++ b/examples/blog/src/new.luan	Sun Feb 04 19:25:12 2018 -0700
@@ -6,9 +6,9 @@
 
 
 return function()
-	local subject = Http.request.parameter.subject
-	local content = Http.request.parameter.content
-	if Http.request.parameter.save ~= nil then
+	local subject = Http.request.parameters.subject
+	local content = Http.request.parameters.content
+	if Http.request.parameters.save ~= nil then
 		local post = Post.new{ subject=subject, content=content }
 		post.save()
 		Http.response.send_redirect("/")