added post handler routes.
removed "if" statement, inserted "each" loop.