diff examples/blog/src/lib/test.luan @ 1218:a50803fde972

http/tools cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 20 Mar 2018 16:24:59 -0600
parents 21d157b153fe
children 4721c482c86b
line wrap: on
line diff
--- a/examples/blog/src/lib/test.luan	Tue Mar 20 15:43:16 2018 -0600
+++ b/examples/blog/src/lib/test.luan	Tue Mar 20 16:24:59 2018 -0600
@@ -28,31 +28,31 @@
 get_page '/'
 
 init()
-print '/new'
-get_page '/new'
+print '/new.html'
+get_page '/new.html'
 
 init()
 Http.request.parameters.subject = 'test'
 Http.request.parameters.content = 'this is a test'
 Http.request.parameters.save = 'whatever'
-print '/new submit'
-get_page '/new'
+print '/new.html submit'
+get_page '/new.html'
 local posts = Post.get_all()
 #posts == 1 or error()
 local post_id = to_string(posts[1].id)
 
 init()
 Http.request.parameters.post = post_id
-print '/edit'
-get_page '/edit'
+print '/edit.html'
+get_page '/edit.html'
 
 init()
 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'
+print '/edit.html submit'
+get_page '/edit.html'
 
 init()
 print '/ again'