Browse Source

新增跳转

wzz 2 years ago
parent
commit
7ca7a0d6e6

+ 19 - 0
code/h5client-app/src/main/java/com/gonghang/h5clientapp/web/MobileController.java

@@ -0,0 +1,19 @@
+package com.gonghang.h5clientapp.web;
+
+import org.springframework.stereotype.Controller;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+@Controller
+@RequestMapping("/mobile/robotH5")
+public class MobileController {
+    @GetMapping("/index")
+    public String index() {
+        return "h5/index";
+    }
+
+    @GetMapping("/taskReport")
+    public String taskReport() {
+        return "h5/taskReport";
+    }
+}