Basically I want to create an object that holds all the backend api urls.
backendUrls: {
  pathParts: {
    house: '/house',
    office: '/office'
  },
  baseUrl: 'http://localhost:8080',
  houseUrl: this.baseUrl + this.pathParts.house
}
But when I start the project (it is VueJS if its important) and I want to open the page the console says: TypeError: Cannot read properties of undefined (reading 'house').
Thanks in advance.
 
    