Skip to content

Commit

Permalink
update route logout
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasReitin committed Jun 27, 2024
1 parent 7eb1ef3 commit e9d1bbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 84 deletions.
2 changes: 1 addition & 1 deletion src/js/Components/dashboard/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function Profile() {

const handleLogout = async () => {
try {
await axios.post('/api/cvb-logout');
await axios.post('/cvb-logout');
// Redirigez l'utilisateur vers la page de connexion
// navigate('cvb-admin');
window.location.href = '/cvb-admin';
Expand Down
30 changes: 0 additions & 30 deletions src/js/Pages/Test.jsx

This file was deleted.

53 changes: 0 additions & 53 deletions src/js/Pages/Welcome copy.jsx

This file was deleted.

0 comments on commit e9d1bbe

Please sign in to comment.