From deddc717206827034766e3ab84aa5814118bf591 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 10 Jun 2020 12:05:35 +0200 Subject: [PATCH] examples: fix vweb_assets.v --- examples/vweb/vweb_assets/main.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/vweb/vweb_assets/main.v b/examples/vweb/vweb_assets/main.v index eae1d07f3e..fd6b49f379 100644 --- a/examples/vweb/vweb_assets/main.v +++ b/examples/vweb/vweb_assets/main.v @@ -17,7 +17,7 @@ fn main() { vweb.run(port) } -pub fn (mut app App) init() { +pub fn (mut app App) init_once() { // Arbitary mime type. app.vweb.serve_static('/favicon.ico', 'favicon.ico', 'img/x-icon') // Automatically make available known static mime types found in given directory. @@ -27,7 +27,7 @@ pub fn (mut app App) init() { //app.vweb.handle_static('.') } -pub fn (mut app App) reset() {} +pub fn (mut app App) init() {} fn (mut app App) index() { // We can dynamically specify which assets are to be used in template.