Skip to content

Commit

Permalink
Fix path til personalia kall
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehansen2 committed Dec 19, 2024
1 parent b26bde0 commit 8cf5164
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PersonaliaApiData } from '../types';
export const personaliaService = {
fetch: async (): Promise<PersonaliaApiData | undefined> => {
try {
const response = await fetch(`person/personopplysninger-api/personalia`);
const response = await fetch(`/person/personopplysninger-api/personalia`);
if (!response.ok) {
throw new Error(`Failed to fetch personalia: ${response.status}`);
}
Expand Down

0 comments on commit 8cf5164

Please sign in to comment.