add ok route
parent
f3d6bdfd59
commit
ca3e23b7fb
|
@ -12,6 +12,8 @@ import org.springframework.http.HttpStatus;
|
|||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import static java.lang.Thread.sleep;
|
||||
|
||||
@RestController
|
||||
public class NewsController {
|
||||
private static final long EVENT_TYPE_NEWS = 1;
|
||||
|
@ -43,4 +45,9 @@ public class NewsController {
|
|||
};
|
||||
});
|
||||
}
|
||||
@RequestMapping(path = "/ok", method = RequestMethod.POST)
|
||||
public ResponseEntity ok() throws InterruptedException {
|
||||
Thread.sleep(500);
|
||||
return ResponseEntity.status(HttpStatus.OK).body(' ');
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue