mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
fix payform api link
This commit is contained in:
parent
aa5e206ea6
commit
e307ec912c
10
README.md
10
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/)
|
@ -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',
|
||||
|
@ -94,7 +94,7 @@ class serviiApi {
|
||||
|
||||
public static async fetchModpacks(): Promise<ApiResponse> {
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user