public Result serveStatic ( ) { Object renderable = new Renderable ( ) { @ Override public void render ( Context context , Result result ) { String fileName = getFileNameFromPathOrReturnRequestPath ( context ) ; URL url = getStaticFileFromAssetsDir ( fileName ) ; streamOutUrlEntity ( url , context , result ) ; } } ; return Results . ok ( ) . render ( renderable ) ; }
Serves resources from the assets directory of your application .