title: Undefined end-point http://localhost:8010/undefined/
body: <p>I am trying to send data from front-end to back-end. Here is my front:</p>
  <pre><code>import axios from 'axios'
  
  const api = axios.create({
    baseURL: `${process.env.BASE_FRONT_URL}`, // process.env.BASE_FRONT_URL = http://localhost:8010
  })
  
  
  export const postTip = async (payload) =&gt; {
    try {
      const { data } = await api.post(`post-tip`, payload);
      return data;
    } catch (e) {
      return [];
    }
  };
  </code></pre>
  <p>And here is back-end:</p>
  <pre><code>const router = require('express').Router();
  
  const tipController = require('../controllers/tips/tipController')
  
  router.post('post-tip', tipController.postTip);
  </code></pre>
  <p>That function <code>tipController.postTip</code> actually just receive and shows data, but when I trigger this end-point I get error: <code>POST http://localhost:8010/undefined/post-tip 404 (Not Found)</code>. So, what's wrong with end-point and how can I make it work? Also, I have no idea, where does this <code>undefined</code> come from? Am I missing something?</p>