Updated routes file with get and post