examples: fix vweb_assets.v

pull/5095/head
Alexander Medvednikov 2020-06-10 12:05:35 +02:00
parent b904d7d1ba
commit deddc71720
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ fn main() {
vweb.run<App>(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.