API example with the Router Object