made routes restful