From 2b3511f69ce8fec157eacc96670af7ef7c39b0d6 Mon Sep 17 00:00:00 2001 From: Kira Edges Date: Fri, 16 May 2025 11:03:53 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A5=D0=B7=20=D0=B2=D1=80=D0=BE=D0=B4=D0=B5?= =?UTF-8?q?=20=D0=BF=D0=BE=D1=84=D0=B8=D0=BA=D1=88=D0=B5=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.v b/main.v index d484edd..ea2d5f6 100644 --- a/main.v +++ b/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']