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