1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/routes/index.tsx

25 lines
646 B
TypeScript
Raw Normal View History

2022-04-14 01:19:27 -04:00
import React from 'react';
import { Route, Routes } from 'react-router-dom';
2022-04-25 12:38:10 -04:00
import ConnectionRequired from '../components/ConnectionRequired';
2022-04-14 01:19:27 -04:00
import SearchPage from './search';
const AppRoutes = () => (
<Routes>
<Route path='/'>
<Route
path='search.html'
element={
2022-04-25 12:38:10 -04:00
<ConnectionRequired>
<SearchPage />
2022-04-25 12:38:10 -04:00
</ConnectionRequired>
}
/>
2022-04-14 01:19:27 -04:00
{/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} />
</Route>
</Routes>
);
export default AppRoutes;