Redesigned the router to support restful request