mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-21 20:52:47 +08:00
16 lines
493 B
TypeScript
16 lines
493 B
TypeScript
import LoginContainer from '@/components/auth/LoginContainer'
|
|
import { NotFound } from '@/components/elements/ScreenBlock'
|
|
import { Route, Routes, useNavigate } from 'react-router-dom'
|
|
|
|
const AuthenticationRouter = () => {
|
|
const navigate = useNavigate()
|
|
return (
|
|
<Routes>
|
|
<Route path={'/login'} element={<LoginContainer />} />
|
|
<Route path={'/*'} element={<NotFound full onBack={() => navigate('/auth/login')} />} />
|
|
</Routes>
|
|
)
|
|
}
|
|
|
|
export default AuthenticationRouter
|