parent
4e3d040a10
commit
0725bae845
@ -0,0 +1,22 @@
|
||||
package com.kob.backend.controller.pk;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pk/")
|
||||
public class BotInfoController {
|
||||
|
||||
@RequestMapping("getbotinfo/")
|
||||
public Map<String, String> getBotInfor()
|
||||
{
|
||||
Map<String, String> bot1 = new HashMap<>();
|
||||
bot1.put("name", "apple");
|
||||
bot1.put("rating", "1500");
|
||||
return bot1;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.kob.backend.controller.pk;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
@Controller
|
||||
|
||||
public class IndexController {
|
||||
|
||||
@RequestMapping("")
|
||||
public String index()
|
||||
{
|
||||
return "pk/index.html";
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 49 KiB |
@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div style="text-align: center">
|
||||
<img src="/image/icon.png" alt="">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue