Can micronaut render static files?
I added compile 'io.micronaut:micronaut-views' into build.gradle
The Controller:
@Controller("/main")
public class MainController {
@View("index.html")
@Get("/")
public HttpResponse index() {
return HttpResponse.ok();
}
}
The index.html file is under /src/main/resources/views/index.html
A requesting localhost:8080/main does not render the view.