I want to render or send a "static" file from the classpath. Logistically the file comes from a referenced project and is available under classpath root.
My code so far:
handlers {
get{
log.info "trying to get index ${file( '/index.html' )}"
render file( '/index.html' )
}
}
upon calling the url, I'm getting a 404 error page back and in the logs I see:
INFO ratpack - trying to get index C:\my-project\build\resources\main\index.html
I tried to add a spring-like classpath:
prefix with no positive effect.
What am I missing? A BaseDir
set up?