:yes: just use `resource` instead of `file` in sta...
# ktor
o
👌 just use
resource
instead of
file
in static section
m
println(String(javaClass.classLoader.getResourceAsStream("static/dashboard.css").readAllBytes()))
— OK, dumps file into log.
static { resource("static") }
/
GET /static/dashboard.css
— 404
c
shouldn't it be
resources()
instead of
resource()
? I believe that the second one does only serve single resource
file()
-
resource()
and
files()
-
resources()
👌 1
👍 1
o
m
Thanks!