mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: update references to old .init_once() and .init() methods to .init_server() and .before_request()
This commit is contained in:
@@ -37,10 +37,7 @@ fn main() {
|
||||
vweb.run_app<App>(mut app, http_port)
|
||||
}
|
||||
|
||||
pub fn (mut app App) init() {
|
||||
}
|
||||
|
||||
pub fn (mut app App) init_once() {
|
||||
pub fn (mut app App) init_server() {
|
||||
eprintln('>> webserver: started on http://127.0.0.1:$app.port/ , with maximum runtime of $app.timeout milliseconds.')
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user