так, отмена

This commit is contained in:
Kira Edges 2025-05-16 11:11:36 +04:00
parent 08d00aabd6
commit 5e32d0692a
Signed by: edges
SSH key fingerprint: SHA256:RT4iUXBlbU5TGAtoYgAX7B0MQ9VaDbhv3/lTdrVrQEA

3
main.v
View file

@ -33,8 +33,7 @@ pub fn (app &Index) css(mut ctx Context) veb.Result {
@['/index.js']
pub fn (app &Index) js(mut ctx Context) veb.Result {
script := os.read_file("static/index.js") or {panic(err)}
return ctx.text(script)
return ctx.file("static/index.js")
}
@['/v-logo.png']