mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: add an overridable .not_found() method, for making a custom 404 page + tests fixes (#17936)
This commit is contained in:
@ -14,7 +14,7 @@ struct Admin {
|
||||
}
|
||||
|
||||
['/admin/duplicate']
|
||||
fn (mut app App) duplicate() vweb.Result {
|
||||
pub fn (mut app App) duplicate() vweb.Result {
|
||||
return app.text('duplicate')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user