We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b91154 commit 8736f26Copy full SHA for 8736f26
tutorials/building_a_simple_web_blog_with_vweb/code/blog/blog.v
@@ -49,9 +49,7 @@ pub fn (mut app App) new() vweb.Result {
49
}
50
51
['/new_article'; post]
52
-pub fn (mut app App) new_article() vweb.Result {
53
- title := app.form['title']
54
- text := app.form['text']
+pub fn (mut app App) new_article(title string, text string) vweb.Result {
55
if title == '' || text == '' {
56
return app.text('Empty text/title')
57
0 commit comments