fix payform api link

This commit is contained in:
Antonino 2024-10-17 23:37:31 +02:00
parent aa5e206ea6
commit e307ec912c
3 changed files with 3 additions and 11 deletions

View File

@ -1,9 +1 @@
# React + Vite Frontend pour l'hebergeur de serveur minecraft [servii](https://app.servii.fr/)
[![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

View File

@ -28,7 +28,7 @@ const CheckoutForm = ({ email }) => {
const selectedPackage = queryParams.get('package'); const selectedPackage = queryParams.get('package');
const fetchClientSecret = useCallback(() => { const fetchClientSecret = useCallback(() => {
return fetch('https://www.servii.fr/api/get-checkout-session', { return fetch('https://api.servii.fr/get-checkout-session', {
method: 'GET', method: 'GET',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',

View File

@ -94,7 +94,7 @@ class serviiApi {
public static async fetchModpacks(): Promise<ApiResponse> { public static async fetchModpacks(): Promise<ApiResponse> {
try { 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', method: 'GET',
}); });
const json = await response.json(); const json = await response.json();