Add endpoint for testing
This commit is contained in:
parent
1c02296a0f
commit
7546794253
@ -27,7 +27,13 @@ public class ItemController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping("/date")
|
@RequestMapping("/date")
|
||||||
public Date getCurrentDate() {
|
public Date getCurrentDate() throws Exception {
|
||||||
return new Date();
|
return new Date();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping("/delay/{seconds}")
|
||||||
|
public void getCurrentTime(@PathVariable final int seconds) throws Exception {
|
||||||
|
|
||||||
|
Thread.sleep(seconds * 1000);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user