Join Slack
Powered by
Can Ktor serve jar resources in addition to local ...
# ktor
r
ribesg
09/03/2017, 12:18 AM
Can Ktor serve jar resources in addition to local filesystem files, or do I need to unzip my jar on startup?
o
orangy
09/03/2017, 9:38 AM
Yes, sure.
http://ktor.io/features/static-content.html
orangy
09/03/2017, 9:39 AM
Hmm, nothing about resources there… Need to fix it.
orangy
09/03/2017, 9:51 AM
Basically, same as files
Copy code
static { staticBasePackage = "java.util" resource("ArrayList.class") }
r
ribesg
09/03/2017, 12:49 PM
Thanks, it works 🙂 Both the source code and the website need some more documentation though
o
orangy
09/03/2017, 2:05 PM
You could help us and send PR to docs 🙂
https://github.com/ktorio/ktorio.github.io
Open in Slack
Previous
Next