diff --git a/README.md b/README.md index 44affe4..a0bf1fc 100644 --- a/README.md +++ b/README.md @@ -1,9 +1 @@ -# React + Vite -[![Deploy to Firebase Hosting on merge](https://github.com/Antoninop/servii-frontend/actions/workflows/firebase-hosting-merge.yml/badge.svg)](https://github.com/Antoninop/servii-frontend/actions/workflows/firebase-hosting-merge.yml) - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh +Frontend pour l'hebergeur de serveur minecraft [servii](https://app.servii.fr/) \ No newline at end of file diff --git a/src/pages/Payment/PaymentForm/PaymentForm.jsx b/src/pages/Payment/PaymentForm/PaymentForm.jsx index 1ef9164..a928635 100644 --- a/src/pages/Payment/PaymentForm/PaymentForm.jsx +++ b/src/pages/Payment/PaymentForm/PaymentForm.jsx @@ -28,7 +28,7 @@ const CheckoutForm = ({ email }) => { const selectedPackage = queryParams.get('package'); const fetchClientSecret = useCallback(() => { - return fetch('https://www.servii.fr/api/get-checkout-session', { + return fetch('https://api.servii.fr/get-checkout-session', { method: 'GET', headers: { 'Content-Type': 'application/json', diff --git a/src/service/api.tsx b/src/service/api.tsx index 50ef830..07d0c56 100644 --- a/src/service/api.tsx +++ b/src/service/api.tsx @@ -94,7 +94,7 @@ class serviiApi { public static async fetchModpacks(): Promise { try { - const response = await fetch(`https://www.servii.fr/api/modpacks/image/a-metadata.txt`, { + const response = await fetch(`https://www.api.servii.fr/modpacks/image/a-metadata.txt`, { method: 'GET', }); const json = await response.json();