Skip to content

Commit

Permalink
correctif error /
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasReitin committed Jul 8, 2024
1 parent 3d245a3 commit 01bae8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Components/dashboard/Users/ButtonAddUser.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ButtonAddUser( {addUserToStaff}) {
console.log(formData);

try {
const response = await axios.post('/api/user/create/', formData);
const response = await axios.post('/api/user/create', formData);
if (response.status ===201){
// console.log('User created:', response.data);
alert(`L'utilisateur ${formData.name} a bien été créé`);
Expand Down

0 comments on commit 01bae8a

Please sign in to comment.