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

vweb: init_once() => init_server(); init() => before_request()

This commit is contained in:
Alexander Medvednikov
2021-04-15 06:27:24 +03:00
parent 3a134acc5a
commit a18f85c8cd
9 changed files with 26 additions and 24 deletions

View File

@ -14,7 +14,7 @@ fn main() {
vweb.run<App>(8081)
}
pub fn (mut app App) init_once() {
pub fn (mut app App) init_server() {
app.serve_static('/favicon.ico', 'favicon.ico', 'img/x-icon')
app.mount_static_folder_at(os.resource_abs_path('.'), '/')
}