Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render static webpage in finatra2 #230

Closed
sandro-felicioni opened this issue Aug 14, 2015 · 1 comment

Comments

@sandro-felicioni
Copy link

commented Aug 14, 2015

Hi there,

I'm relatively new to finatra2 and I'm trying to render a static html page with finatra2. Looking at existing code (finatra 1.6.0) it should look somehow similar to:
get("/") { request =>
render.static("index.html").toFuture
}
However, I was unable to find the pendant of above code in finatra2. Any help would be much appreciated.

Many thanks
Sandro

@scosenza

This comment has been minimized.

Copy link
Contributor

commented Aug 15, 2015

Hi Sandro,

Relevant docs can be found here: https://github.com/twitter/finatra/tree/master/http#file-server

-Steve

@scosenza scosenza closed this Aug 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.