vweb: update references to old .init_once() and .init() methods to .init_server() and .before_request()

This commit is contained in:
Delyan Angelov 2021-04-26 19:38:13 +03:00
parent 5e0ff5c524
commit cafe382424
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
5 changed files with 6 additions and 19 deletions

View file

@ -18,7 +18,7 @@ fn main() {
vweb.run<App>(port)
}
pub fn (mut app App) init_once() {
pub fn (mut app App) init_server() {
app.handle_static('.', false)
}