add ok route

master
Dino Dizdarevic 2018-10-01 00:41:46 +02:00
parent f3d6bdfd59
commit ca3e23b7fb
1 changed files with 7 additions and 0 deletions

View File

@ -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(' ');
}
}