forked from Cookies_Github_mirror/AquaDX
[+] Add @ API macro
This commit is contained in:
@@ -5,6 +5,9 @@ import org.springframework.http.ResponseEntity
|
||||
import org.springframework.web.bind.annotation.ControllerAdvice
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler
|
||||
|
||||
|
||||
val SUCCESS = ResponseEntity.ok().body(mapOf("status" to "ok"))
|
||||
|
||||
class ApiException(val code: Int, message: Str) : RuntimeException(message)
|
||||
|
||||
@ControllerAdvice
|
||||
|
||||
Reference in New Issue
Block a user