Skip to content

Commit

Permalink
fix: revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Sep 30, 2024
1 parent 62b9827 commit d6060e6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import type { PageServerLoad } from './$types';
import { z } from 'zod';

export const load = (async ({ fetch, params }) => {
const endpoint = `${BASE_API_URL}/requirement-assessments/${params.id}/`;
const URLModel = 'requirement-assessments';
const endpoint = `${BASE_API_URL}/${URLModel}/${params.id}/`;

const res = await fetch(endpoint);
const requirementAssessment = await res.json();
Expand Down

0 comments on commit d6060e6

Please sign in to comment.