need to update server side to take a path variable instead of a request param