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

Add react-router

This commit is contained in:
Bill Thornton 2022-04-14 01:19:27 -04:00
parent 6534c0a596
commit b2372a96e2
16 changed files with 176 additions and 59 deletions

16
src/routes/index.tsx Normal file
View file

@ -0,0 +1,16 @@
import React from 'react';
import { Route, Routes } from 'react-router-dom';
import SearchPage from './search';
const AppRoutes = () => (
<Routes>
<Route path='/'>
<Route path='search.html' element={<SearchPage />} />
{/* Suppress warnings for unhandled routes */}
<Route path='*' element={null} />
</Route>
</Routes>
);
export default AppRoutes;