package uk.gov.register.presentation.resource;

import io.dropwizard.views.View;
import uk.gov.register.thymeleaf.ThymeleafView;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("/")
public class HomePageResource extends ResourceBase{
    @GET
    @Produces({MediaType.TEXT_HTML})
    public View home() {
        return new ThymeleafView(httpServletRequest, httpServletResponse, servletContext, "home.html");
    }
}

@@ -480,11 +480,185 @@
 );%0A    %7D
+%0A%0A    @GET%0A    @Path(%22/robots.txt%22)%0A    @Produces(MediaType.TEXT_PLAIN)%0A    public String robots() %7B%0A        return %22User-agent: *%5Cn%22 +%0A                %22Disallow: /%5Cn%22;%0A    %7D
 %0A%7D%0A

add robots.txt to deny everything