diff --git a/UI/src/components/MainMenu.vue b/UI/src/components/MainMenu.vue index 5db955d..acd6d2e 100644 --- a/UI/src/components/MainMenu.vue +++ b/UI/src/components/MainMenu.vue @@ -24,12 +24,12 @@ Request Monitor - +
  • diff --git a/UI/src/services/api.js b/UI/src/services/api.js index 48349fa..3dbd44e 100644 --- a/UI/src/services/api.js +++ b/UI/src/services/api.js @@ -1,6 +1,10 @@ import axios from 'axios'; -const API_URL = window.location.protocol + "//" + location.host + "/api"; +//if it's on devmode +let API_URL = window.location.protocol + "//" + location.host + "/api"; +if (process.env.NODE_ENV === 'development') { + API_URL = "http://localhost:8082/api"; +} export const getMockDefinitions = async () => { try { diff --git a/UI/src/views/MappingView.vue b/UI/src/views/MappingView.vue index a519346..4cd01d4 100644 --- a/UI/src/views/MappingView.vue +++ b/UI/src/views/MappingView.vue @@ -67,79 +67,45 @@

    No Mocks

    Get started by creating a new mock.

    -
    - -
    - -