так, отмена
This commit is contained in:
parent
08d00aabd6
commit
5e32d0692a
1 changed files with 1 additions and 2 deletions
3
main.v
3
main.v
|
@ -33,8 +33,7 @@ pub fn (app &Index) css(mut ctx Context) veb.Result {
|
||||||
|
|
||||||
@['/index.js']
|
@['/index.js']
|
||||||
pub fn (app &Index) js(mut ctx Context) veb.Result {
|
pub fn (app &Index) js(mut ctx Context) veb.Result {
|
||||||
script := os.read_file("static/index.js") or {panic(err)}
|
return ctx.file("static/index.js")
|
||||||
return ctx.text(script)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@['/v-logo.png']
|
@['/v-logo.png']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue