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:
@ -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('.'), '/')
|
||||
}
|
||||
|
Reference in New Issue
Block a user