👌 修复getStatus Post跨域
This commit is contained in:
parent
9d46bd5676
commit
410fa7a54f
@ -25,7 +25,7 @@ import javax.servlet.http.HttpServletResponse
|
|||||||
|
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
open class EmbyLisenceServerApplication
|
class EmbyLisenceServerApplication
|
||||||
|
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
runApplication<EmbyLisenceServerApplication>(*args)
|
runApplication<EmbyLisenceServerApplication>(*args)
|
||||||
@ -33,30 +33,23 @@ fun main(args: Array<String>) {
|
|||||||
|
|
||||||
@RequestMapping("/admin/service/registration")
|
@RequestMapping("/admin/service/registration")
|
||||||
@RestController
|
@RestController
|
||||||
|
@CrossOrigin
|
||||||
class LisenceController {
|
class LisenceController {
|
||||||
|
|
||||||
@RequestMapping("validateDevice")
|
@RequestMapping("validateDevice", "validateDevice.php")
|
||||||
fun validateDevice(): Device {
|
fun validateDevice(): Device {
|
||||||
return Device()
|
return Device()
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("getStatus")
|
@RequestMapping("getStatus", "getStatus.php")
|
||||||
fun getStatus(): Status {
|
fun getStatus(): Status {
|
||||||
return Status()
|
return Status()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("validate")
|
@RequestMapping("validate", "validate.php")
|
||||||
fun validate(): Validate {
|
fun validate(): Validate {
|
||||||
return Validate()
|
return Validate()
|
||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("validate.php")
|
|
||||||
fun validatePhp(): Validate {
|
|
||||||
return Validate(
|
|
||||||
""
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data class Device(
|
data class Device(
|
||||||
@ -91,7 +84,7 @@ data class Validate(
|
|||||||
@Order(Ordered.HIGHEST_PRECEDENCE)
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
||||||
@ControllerAdvice
|
@ControllerAdvice
|
||||||
@RequestMapping("/error")
|
@RequestMapping("/error")
|
||||||
open class ExtendExceptionHandler(errorAttributes: ErrorAttributes) : AbstractErrorController(errorAttributes) {
|
class ExtendExceptionHandler(errorAttributes: ErrorAttributes) : AbstractErrorController(errorAttributes) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 参数断言异常
|
* 参数断言异常
|
||||||
|
Loading…
x
Reference in New Issue
Block a user