1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: remove init_server() from all examples, tutorials, and tests

This commit is contained in:
Alexander Medvednikov
2021-08-03 16:03:16 +03:00
parent f879b3e221
commit 80976e640c
7 changed files with 30 additions and 55 deletions

View File

@ -11,12 +11,10 @@ struct App {
}
fn main() {
vweb.run(&App{}, 8081)
}
pub fn (mut app App) init_server() {
mut app := &App{}
app.serve_static('/favicon.ico', 'favicon.ico')
app.mount_static_folder_at(os.resource_abs_path('.'), '/')
vweb.run(app, 8081)
}
pub fn (mut app App) index() vweb.Result {