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:
@@ -740,7 +740,7 @@ fn handle_route[T](mut app T, url urllib.URL, routes &map[string]Route, tid int)
|
||||
}
|
||||
}
|
||||
// Route not found
|
||||
app.conn.write(vweb.http_404.bytes()) or {}
|
||||
app.not_found()
|
||||
}
|
||||
|
||||
// validate_middleware validates and fires all middlewares that are defined in the global app instance
|
||||
|
||||
Reference in New Issue
Block a user