wip: swagger
This commit is contained in:
@@ -67,7 +67,7 @@ function sendAffiliation(event, dispatch) {
|
||||
|
||||
const formData = new FormData(event.target);
|
||||
toast.promise(
|
||||
apiAxios.put(`/affiliation/${formData.get('club')}?saison=${formData.get('saison')}`),
|
||||
apiAxios.post(`/affiliation/${formData.get('club')}?saison=${formData.get('saison')}`),
|
||||
{
|
||||
pending: "Enregistrement de l'affiliation en cours",
|
||||
success: "Affiliation enregistrée avec succès 🎉",
|
||||
|
||||
@@ -17,6 +17,10 @@ export default ({mode}) => {
|
||||
target: process.env.VITE_API_URL,
|
||||
changeOrigin: true,
|
||||
},
|
||||
"/q": {
|
||||
target: process.env.VITE_API_URL,
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user