refactor: revew all design of services, clients, deadcode, ...
This commit is contained in:
@@ -1,15 +1,6 @@
|
||||
import { redirect } from "next/navigation";
|
||||
import { isUserAuthenticated } from "@/lib/server-auth";
|
||||
|
||||
export default async function ManageAdminPage() {
|
||||
// Vérifier l'authentification
|
||||
const isAuthenticated = await isUserAuthenticated();
|
||||
|
||||
// Si pas de cookie d'authentification, rediriger vers login
|
||||
if (!isAuthenticated) {
|
||||
redirect("/login");
|
||||
}
|
||||
|
||||
// Rediriger vers la page skills par défaut
|
||||
redirect("/admin/manage/skills");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user