♻️ Fikser ingress-"feil"

Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no>
This commit is contained in:
Sindre Kjelsrud 2023-07-26 13:03:30 +02:00
parent a4b83e13a6
commit 0271b96cbf
5 changed files with 4 additions and 16 deletions

View file

@ -7,7 +7,6 @@ import { useState } from "react";
import BildeOpplastning from "../components/BildeOpplastning";
import Header from "../components/Header";
import { useNavigate } from "react-router-dom";
import { backendURL } from "../const";
export default function Feil() {
const [tittel, setTittel] = useState("");
@ -22,7 +21,7 @@ export default function Feil() {
dato: new Date().toISOString().replace('Z', '')
}
axios.post(backendURL + "/api/nyfeil", payload, {
axios.post("/api/nyfeil", payload, {
headers: {
'Content-Type': 'application/json'
}