177d6c7cd8
Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no> Co-authored-by: Christian Bulow Skovborg <christian.bulow.skovborg@nav.no> Co-authored-by: Amalie Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
13 lines
No EOL
357 B
TypeScript
13 lines
No EOL
357 B
TypeScript
import axios from "axios";
|
|
|
|
export default function post(route: String, data?: Object) {
|
|
axios.post("https://helse-sprik.intern.dev.nav.no" + route, data, {
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
}).then((response) => {
|
|
console.log(response)
|
|
}).catch((error) => {
|
|
console.log(error);
|
|
})
|
|
} |