fix
This commit is contained in:
@@ -15,6 +15,7 @@ import { ProtectedRoute } from "@/components/auth/ProtectedRoute";
|
||||
import { LoginPage } from "@/pages/LoginPage";
|
||||
import { RegisterPage } from "@/pages/RegisterPage";
|
||||
import { AdminRegisterPage } from "@/pages/AdminRegisterPage";
|
||||
import { AdminRecoverPage } from "@/pages/AdminRecoverPage";
|
||||
import { WorldsListPage } from "@/pages/WorldsListPage";
|
||||
import { WorldBuilderPage } from "@/pages/WorldBuilderPage";
|
||||
import { WorldEditPage } from "@/pages/WorldEditPage";
|
||||
@@ -109,6 +110,16 @@ export default function App() {
|
||||
</PublicOnly>
|
||||
}
|
||||
/>
|
||||
{/* Disaster-recovery admin creation — PUBLIC (no auth), not behind
|
||||
ProtectedRoute. Used when all admins have lost access. */}
|
||||
<Route
|
||||
path="/recover"
|
||||
element={
|
||||
<Layout>
|
||||
<AdminRecoverPage />
|
||||
</Layout>
|
||||
}
|
||||
/>
|
||||
|
||||
{/* Protected routes */}
|
||||
<Route
|
||||
|
||||
Reference in New Issue
Block a user