Hi Anton,
we will work on the missing documentation soon - no worries (we’ll make it
*complete* for the 1.0 release) :-)
Having that said - “fromResource” methods work “as expected” when working
with things JDK methods like getClass.getClassLoader.getResourceAsStream()
- so it’s “what is on the classpath”).

For example, if you have a src/resources/public/main.css file it would be
available as /public/main.css

// Note, written from memory - should be accurate though.

— Konrad
​

On Sun, Apr 26, 2015 at 10:30 PM, Anton Kulaga <[email protected]>
wrote:

> Hello,
>
> I am trying to use akka-http together with sbtweb to handle resources.
> But sbt-web itself is rather  confusing and there is a lack of
> documentation about IO in akka-http.
> If, say, I copy a file called main.css to public/ folder, how should I
> access it (with getFromResource(file)  ?) and what will be the exact path
> to main.css resource?
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to