🥅 Sørger for rett destinasjon for HTTP requests fra frontend

Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
Co-authored-by: Amalie Mansåker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
Markus Johansen 2023-07-17 15:40:26 +02:00
parent 1fbc3d5832
commit a5497cf536

View file

@ -1,7 +1,7 @@
import axios from "axios"; import axios from "axios";
export default function post(route: String, data?: Object) { export default function post(route: String, data?: Object) {
axios.post("http://0.0.0.0:8080/" + route, data, { axios.post("http://helse-sprik.intern.dev.nav.no" + route, data, {
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
} }