diff --git a/src/main/java/de/rtuni/ms/ds/DummyController.java b/src/main/java/de/rtuni/ms/ds/DummyController.java deleted file mode 100644 index d6e150544daffd006cdf4ccc9129a482e848c556..0000000000000000000000000000000000000000 --- a/src/main/java/de/rtuni/ms/ds/DummyController.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2019 (C) by Julian Horner. - * All Rights Reserved. - */ - -package de.rtuni.ms.ds; - -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * Dummy controller. - * - * @author Julian - * - */ -@RestController -public class DummyController { - //--------------------------------------------------------------------------------------------- - - @RequestMapping("/") - public String index() { - return "Greetings from SB"; - } - - //--------------------------------------------------------------------------------------------- -} diff --git a/src/main/java/de/rtuni/ms/ds/HomeController.java b/src/main/java/de/rtuni/ms/ds/HomeController.java new file mode 100644 index 0000000000000000000000000000000000000000..6673d9665e3703eef2c5d53794177dceb2d51c64 --- /dev/null +++ b/src/main/java/de/rtuni/ms/ds/HomeController.java @@ -0,0 +1,42 @@ +/* + * 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