diff --git a/src/main/java/de/rtuni/ms/ds/Application.java b/src/main/java/de/rtuni/ms/ds/Application.java deleted file mode 100644 index e41108bb0016926cb0c54ddaefe015eea29fe47b..0000000000000000000000000000000000000000 --- a/src/main/java/de/rtuni/ms/ds/Application.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2019 (C) by Julian Horner. - * All Rights Reserved. - */ - -package de.rtuni.ms.ds; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.cloud.netflix.eureka.EnableEurekaClient; - -/** - * Dummy service. - * - * @author Julian - * - */ -@SpringBootApplication -@EnableEurekaClient -public class Application { - //--------------------------------------------------------------------------------------------- - - /** - * Starts the application. - * - * @param args The arguments - */ - public static void main(final String[] args) { SpringApplication.run(Application.class, args); } - - //--------------------------------------------------------------------------------------------- -} diff --git a/src/main/java/de/rtuni/ms/ds/HomeController.java b/src/main/java/de/rtuni/ms/ds/HomeController.java deleted file mode 100644 index 6673d9665e3703eef2c5d53794177dceb2d51c64..0000000000000000000000000000000000000000 --- a/src/main/java/de/rtuni/ms/ds/HomeController.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2019 (C) by Julian Horner. - * All Rights Reserved. - */ - -package de.rtuni.ms.ds; - -import org.springframework.stereotype.Controller; -import org.springframework.web.bind.annotation.RequestMapping; - -/** - * Class that handles all kind of requests. - * - * @author Julian - * - */ -@Controller -public class HomeController { - //--------------------------------------------------------------------------------------------- - - /** - * Catches the request for the start page and returns the name of the corresponding template. - * - * @return The name of the template - */ - @RequestMapping("/") - public String index() { - return "index"; - } - - /** - * Catches the request for the secure page and returns the name of the corresponding template. - * - * @return The name of the template - */ - @RequestMapping("/securePage") - public String securePage() { - return "securePage"; - } - - //--------------------------------------------------------------------------------------------- -} \ No newline at end of file diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html deleted file mode 100644 index ab3188e772de7271da730a4032fd98c5c508e862..0000000000000000000000000000000000000000 --- a/src/main/resources/templates/index.html +++ /dev/null @@ -1,11 +0,0 @@ -<!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 deleted file mode 100644 index 55b35749559211f31c4247b744faedd6d2f0a7bf..0000000000000000000000000000000000000000 --- a/src/main/resources/templates/securePage.html +++ /dev/null @@ -1,11 +0,0 @@ -<!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