hw2 create restful routes with flash