Skip to content

Commit

Permalink
test api chemin git hub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentBoyer1976 committed Dec 17, 2024
1 parent 1822b88 commit 16610a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PhotographeData from "../patterns/constructorPattern/photographeData.js";
import CardFactory from "../patterns/factoriesPattern/cardsFactory.js";
import { singletonMedia } from "../patterns/singletonPattern/SingletonMedia.js";
const photographersSection = document.querySelector(".photographer")
const photographerApi = new Api("../../data/photographers.json");
const photographerApi = new Api("/Front-End-Fisheye.github.io/data/photographers.json");
/**
* @description - Initialise la page d'accueil
* @param {Array} photographersData - Tableau des photographes
Expand Down
2 changes: 1 addition & 1 deletion scripts/pages/photographer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {openCloseFilterMenu, displayMediaWithFilter} from "../utils/filter.js";
import {afficheTotalLikes} from "../utils/likes.js";
import {displayLightbox} from "../utils/lightbox.js";

const photographersApi = new Api("../../data/photographers.json");
const photographersApi = new Api("/Front-End-Fisheye.github.io/data/photographers.json");
const photographerId = new URLSearchParams(window.location.search).get("id");
/**
* @description - Récupère les données du photographe et des médias
Expand Down
2 changes: 1 addition & 1 deletion scripts/patterns/constructorPattern/photographeData.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class PhotographeData {
* @returns
*/
formatPortraitPath(portrait){
return `./assets/images/FishEye_Photos/Sample_Photos/Photographers ID Photos/${portrait}`;
return `/Front-End-Fisheye.github.io/assets/images/FishEye_Photos/Sample_Photos/Photographers ID Photos/${portrait}`;
}
}

0 comments on commit 16610a5

Please sign in to comment.