First working Spring-based version
[proteocache.git] / server / compbio / controllers / MainController.java
diff --git a/server/compbio/controllers/MainController.java b/server/compbio/controllers/MainController.java
new file mode 100644 (file)
index 0000000..7a8b926
--- /dev/null
@@ -0,0 +1,15 @@
+package compbio.controllers;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+public class MainController {
+
+       @RequestMapping("home")
+       public String loadHomePage(Model m) {
+               m.addAttribute("name", "Proteocache");
+               return "home";
+       }
+}
\ No newline at end of file