...
This commit is contained in:
@@ -12,6 +12,4 @@ class SpringConfigClass : WebApplicationInitializer {
|
||||
filter.setInitParameter("encoding", "UTF-8")
|
||||
filter.addMappingForServletNames(null, false, "dispatcher")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -20,13 +20,13 @@ import java.util.*
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("blog")
|
||||
@RequestMapping("/blog")
|
||||
class BlogController() {
|
||||
|
||||
@Autowired
|
||||
lateinit var logService: LogService
|
||||
|
||||
@GetMapping("","/write")
|
||||
@GetMapping("/write")
|
||||
fun writ() : ModelAndView{
|
||||
val vm = ModelAndView("/content/blog/write")
|
||||
// when(System.currentTimeMillis() % 5L) {
|
||||
|
||||
@@ -16,7 +16,7 @@ import java.util.*
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("bums")
|
||||
@RequestMapping("/bums")
|
||||
class BumsPrivate {
|
||||
@Autowired
|
||||
lateinit var globalEvv : GlobalEnvironment
|
||||
@@ -25,7 +25,7 @@ class BumsPrivate {
|
||||
lateinit var logService: LogService
|
||||
|
||||
@ResponseBody
|
||||
@PostMapping("save/loc.api")
|
||||
@PostMapping("/save/loc.api")
|
||||
fun login(httpServletRequest: HttpServletRequest, @RequestBody jsonString: String) : ResponseEntity<ResponceResult> {
|
||||
logService.log("${httpServletRequest.requestURI}")
|
||||
logService.log(jsonString)
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.*
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("tlg")
|
||||
@RequestMapping("/tlg")
|
||||
class Telegram {
|
||||
|
||||
@Autowired
|
||||
@@ -39,7 +39,7 @@ class Telegram {
|
||||
}
|
||||
|
||||
@ResponseBody
|
||||
@PostMapping("webhook")
|
||||
@PostMapping("/webhook")
|
||||
fun test(httpServletRequest: HttpServletRequest, @RequestBody update : TelegramUpdate?) {
|
||||
try {
|
||||
logService.log("test strat ${update}")
|
||||
|
||||
@@ -21,7 +21,7 @@ import kotlin.math.log
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("user")
|
||||
@RequestMapping("/user")
|
||||
class UserController {
|
||||
val EncTypeKey = "enc"
|
||||
val EncType00 = "T0"
|
||||
|
||||
Reference in New Issue
Block a user