const path = require('path');
const express = require('express');
const router = express.Router();
const log = require('../logger');
const wordsRepository = new (require("../repositories/word.repository"))();

router.get('/', (req, res) => {
  wordsRepository.getRandomWords(6)
    .then(words => {
      res.render("index", {
        "words": words.map(word => word.dataValues)
      });
    })
    .catch(error => {
      log.error(error);
      res.status(500).json(error);
    })
});

router.get(['/chat', '/account', '/leaderboards'], (req, res) => {
  const mainFilePath = path.join(__dirname, '..', '..', 'front', 'dist', 'index.html');
  res.sendFile(path.join(mainFilePath));
});

module.exports = router;

@@ -498,16 +498,19 @@
 et(%5B
+%0A  
 '/chat',
  '/a
@@ -505,16 +505,18 @@
 '/chat',
+%0A 
  '/accou
@@ -519,16 +519,18 @@
 ccount',
+%0A 
  '/leade
@@ -537,16 +537,54 @@
 rboards'
+,%0A  '/signin',%0A  '/signup',%0A  '/score'
 %5D, (req,
@@ -594,16 +594,18 @@
 s) =%3E %7B%0A
+  
   const 
@@ -684,16 +684,18 @@
 html');%0A
+  
   res.se

Add mapping to angular routes