examples: fix type in veb_example.v

This commit is contained in:
Alexander Medvednikov 2024-09-17 22:57:13 +03:00
parent 1187e1367c
commit c11b1f8bd1
2 changed files with 11 additions and 4 deletions

View file

@ -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() {