First put your HTML files in the public folder, for example:
public | ├── html | └── hello.html
And then you can serve static HTML files in several ways using the asset controller :
Or by accessing the file directly in Url: http://localhost:9000/assets/html/hello.html
Or using the routes file to map the URL to your file. In the routes file add:
GET /hello controllers.Assets.at(path="/public", file="html/hello.html")
Then log in to Html using http://localhost:9000/hello
source share