added front-end route and endpoint for gmail api