text: import homeTemplate from './homeTemplate.js';
  
  let currRouter = undefined;
  let currRender = undefined;
  let authService = undefined;
  
  const init = (router, render,service1) => {
      currRouter = router;
      currRender = render;
      authService = service1;
  };
  
  const getView = async () => {
      if(authService.isLoggedIn()){
          currRouter.redirect('/allRecords');
      }else{
          let viewTemp = homeTemplate.home();
          currRender(viewTemp);
      }
  
  };
  
  export default {
      init,
      getView
  };