ПОЧТИ ГОТОВО

This commit is contained in:
2025-12-17 20:59:47 +07:00
parent 675a0fea0c
commit 790b2d6083
6 changed files with 479 additions and 206 deletions

View File

@@ -20,6 +20,7 @@ import { AssignmentDetailPage } from '@/pages/AssignmentDetailPage'
import { ProfilePage } from '@/pages/ProfilePage'
import { UserProfilePage } from '@/pages/UserProfilePage'
import { NotFoundPage } from '@/pages/NotFoundPage'
import { TeapotPage } from '@/pages/TeapotPage'
// Protected route wrapper
function ProtectedRoute({ children }: { children: React.ReactNode }) {
@@ -148,6 +149,11 @@ function App() {
<Route path="users/:id" element={<UserProfilePage />} />
{/* Easter egg - 418 I'm a teapot */}
<Route path="418" element={<TeapotPage />} />
<Route path="teapot" element={<TeapotPage />} />
<Route path="tea" element={<TeapotPage />} />
{/* 404 - must be last */}
<Route path="*" element={<NotFoundPage />} />
</Route>