From 8c9764abdf5c213424eec5ea5b7742eaec380a8b Mon Sep 17 00:00:00 2001 From: sdelamo Date: Tue, 12 Dec 2023 13:08:01 +0100 Subject: [PATCH] add resource section --- .../micronaut-content-negotiation.adoc | 4 ++++ .../{java => }/src/main/resources/views/message.html | 0 2 files changed, 4 insertions(+) rename guides/micronaut-content-negotiation/{java => }/src/main/resources/views/message.html (100%) diff --git a/guides/micronaut-content-negotiation/micronaut-content-negotiation.adoc b/guides/micronaut-content-negotiation/micronaut-content-negotiation.adoc index 9d41b064b9..9b1ec4a6dd 100644 --- a/guides/micronaut-content-negotiation/micronaut-content-negotiation.adoc +++ b/guides/micronaut-content-negotiation/micronaut-content-negotiation.adoc @@ -18,6 +18,10 @@ callout:controller[number=1,arg0=/] callout:get-generic[3] callout:http-request-method-parameter[4] +In case of HTML, the previous controller uses a Thymeleaf view: + +resource:views/message.html[] + == Test Write a test verifying the response content type depending on the request Accept HTTP Header. diff --git a/guides/micronaut-content-negotiation/java/src/main/resources/views/message.html b/guides/micronaut-content-negotiation/src/main/resources/views/message.html similarity index 100% rename from guides/micronaut-content-negotiation/java/src/main/resources/views/message.html rename to guides/micronaut-content-negotiation/src/main/resources/views/message.html