diff examples/blog/src/lib/test.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 a50803fde972
line wrap: on
line diff
--- a/examples/blog/src/lib/test.luan	Sun Feb 04 18:50:25 2018 -0700
+++ b/examples/blog/src/lib/test.luan	Sun Feb 04 19:25:12 2018 -0700
@@ -32,9 +32,9 @@
 get_page '/new'
 
 init()
-Http.request.parameter.subject = 'test'
-Http.request.parameter.content = 'this is a test'
-Http.request.parameter.save = 'whatever'
+Http.request.parameters.subject = 'test'
+Http.request.parameters.content = 'this is a test'
+Http.request.parameters.save = 'whatever'
 print '/new submit'
 get_page '/new'
 local posts = Post.get_all()
@@ -42,15 +42,15 @@
 local post_id = to_string(posts[1].id)
 
 init()
-Http.request.parameter.post = post_id
+Http.request.parameters.post = post_id
 print '/edit'
 get_page '/edit'
 
 init()
-Http.request.parameter.post = post_id
-Http.request.parameter.subject = 'test'
-Http.request.parameter.content = 'this is an edit'
-Http.request.parameter.save = 'whatever'
+Http.request.parameters.post = post_id
+Http.request.parameters.subject = 'test'
+Http.request.parameters.content = 'this is an edit'
+Http.request.parameters.save = 'whatever'
 print '/edit submit'
 get_page '/edit'