mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
examples: fix type in veb_example.v
This commit is contained in:
parent
1187e1367c
commit
c11b1f8bd1
2 changed files with 11 additions and 4 deletions
|
@ -64,8 +64,8 @@ pub fn (mut app App) cookie(mut ctx Context) veb.Result {
|
|||
}
|
||||
|
||||
@[post]
|
||||
pub fn (mut app Context) post(mut ctx Context) veb.Result {
|
||||
return ctx.text('Post body: ${app.req.data}')
|
||||
pub fn (mut app App) post(mut ctx Context) veb.Result {
|
||||
return ctx.text('Post body: ${ctx.req.data}')
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue