src/java/de/uapcore/lightpit/modules/HomeModule.java

changeset 12
005d27918b57
parent 10
89e3e6e28b69
child 24
8137ec335416
--- a/src/java/de/uapcore/lightpit/modules/HomeModule.java	Sun Dec 17 01:45:28 2017 +0100
+++ b/src/java/de/uapcore/lightpit/modules/HomeModule.java	Sat Dec 23 17:28:19 2017 +0100
@@ -30,7 +30,12 @@
 
 import de.uapcore.lightpit.LightPITModule;
 import de.uapcore.lightpit.AbstractLightPITServlet;
+import de.uapcore.lightpit.HttpMethod;
+import de.uapcore.lightpit.RequestMapping;
+import de.uapcore.lightpit.ResponseType;
 import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
 
 /**
  * Entry point for the application.
@@ -45,4 +50,9 @@
 )
 public final class HomeModule extends AbstractLightPITServlet {
     
+    @RequestMapping(method = HttpMethod.GET)
+    public ResponseType handle(HttpServletRequest req, HttpServletResponse resp) {
+        
+        return ResponseType.HTML_FULL;
+    }
 }

mercurial