added get routes and post handlers that included if statements.
created separate erg files for questions 1&2.