Add endpoint for testing

This commit is contained in:
Ivan Paolillo 2016-09-21 16:52:26 +02:00
parent 1c02296a0f
commit 7546794253

View File

@ -27,7 +27,13 @@ public class ItemController {
}
@RequestMapping("/date")
public Date getCurrentDate() {
public Date getCurrentDate() throws Exception {
return new Date();
}
@RequestMapping("/delay/{seconds}")
public void getCurrentTime(@PathVariable final int seconds) throws Exception {
Thread.sleep(seconds * 1000);
}
}