Хз вроде пофикшено

This commit is contained in:
Kira Edges 2025-05-16 11:03:53 +04:00
parent 3fdbceaaff
commit 2b3511f69c
Signed by: edges
SSH key fingerprint: SHA256:RT4iUXBlbU5TGAtoYgAX7B0MQ9VaDbhv3/lTdrVrQEA

3
main.v
View file

@ -33,7 +33,8 @@ 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 {
return ctx.file("static/index.js") script := os.read_file("static/index.js") or {panic(err)}
return ctx.text(script)
} }
@['/v-logo.png'] @['/v-logo.png']