From 3c8737842137cafe5c45149962cd7c1e9357f346 Mon Sep 17 00:00:00 2001 From: Julian Horner <julianhorner@web.de> Date: Mon, 16 Dec 2019 18:41:18 +0100 Subject: [PATCH] Add html pages --- src/main/resources/templates/index.html | 11 +++++++++++ src/main/resources/templates/securePage.html | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 src/main/resources/templates/index.html create mode 100644 src/main/resources/templates/securePage.html diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html new file mode 100644 index 0000000..ab3188e --- /dev/null +++ b/src/main/resources/templates/index.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML> +<html xmlns:th="http://www.thymeleaf.org"> + <head> + <title>Dummy page</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + </head> + <body> + <h1>Page without authentication</h1> + <a href="#" th:href="@{/securePage}">geschützte Seite anfordern</a> + </body> +</html> diff --git a/src/main/resources/templates/securePage.html b/src/main/resources/templates/securePage.html new file mode 100644 index 0000000..55b3574 --- /dev/null +++ b/src/main/resources/templates/securePage.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML> +<html xmlns:th="http://www.thymeleaf.org"> + <head> + <title>Very secure page</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> + </head> + <body> + <h1>Page with authentication</h1> + <a href="#" th:href="@{/}">You're authorised to see this page</a> + </body> +</html> \ No newline at end of file -- GitLab