altered router to work with http verbs