add: added an auth middleware to simplify code

This commit is contained in:
Lukian 2025-04-03 12:30:17 +02:00
parent c34df6609c
commit e0efe57f5c
9 changed files with 104 additions and 70 deletions

View file

@ -26,7 +26,7 @@ export default function ChannelPage() {
);
})
.catch((err) => {
console.error(err.response.data.message);
console.error(err.response);
});
}
@ -42,7 +42,7 @@ export default function ChannelPage() {
);
})
.catch((err) => {
console.error(err.response.data.message);
console.error(err.response);
});
}