added api router to backend and fixed badge when reloading the website

This commit is contained in:
2025-07-25 09:54:34 +02:00
parent 850c475329
commit 7abed30091
3 changed files with 116 additions and 97 deletions

View File

@@ -6,13 +6,16 @@ import { useEffect } from "react";
import { loadTheme } from "./utils/frontendService";
import { myToast } from "./utils/frontendService";
import "react-toastify/dist/ReactToastify.css";
import Cookies from "js-cookie";
function App() {
const users = useUsers();
useEffect(() => {
loadTheme();
myToast("User list updated", "success");
if (Cookies.get("token")) {
myToast("User list updated", "success");
}
}, []);
return (