mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
update routes for multisearch
This commit is contained in:
parent
2fa44b8f51
commit
7c890443e0
1 changed files with 10 additions and 9 deletions
|
@ -10,7 +10,6 @@ import {
|
|||
|
||||
import { convertLegacyUrl, isLegacyUrl } from "@/backend/metadata/getmeta";
|
||||
import { generateQuickSearchMediaUrl } from "@/backend/metadata/tmdb";
|
||||
import { MWMediaType } from "@/backend/metadata/types/mw";
|
||||
import { BannerContextProvider } from "@/hooks/useBanner";
|
||||
import { Layout } from "@/setup/Layout";
|
||||
import { BookmarkContextProvider } from "@/state/bookmark";
|
||||
|
@ -64,9 +63,6 @@ function App() {
|
|||
<Switch>
|
||||
{/* functional routes */}
|
||||
<Route exact path="/v2-migration" component={V2MigrationView} />
|
||||
<Route exact path="/">
|
||||
<Redirect to={`/search/${MWMediaType.MOVIE}`} />
|
||||
</Route>
|
||||
<Route exact path="/s/:query">
|
||||
<QuickSearch />
|
||||
</Route>
|
||||
|
@ -82,11 +78,16 @@ function App() {
|
|||
<MediaView />
|
||||
</LegacyUrlView>
|
||||
</Route>
|
||||
<Route
|
||||
exact
|
||||
path="/search/:type/:query?"
|
||||
component={SearchView}
|
||||
/>
|
||||
<Route exact path="/search/:type/:query?">
|
||||
<Redirect to="/browse/:query" />
|
||||
</Route>
|
||||
<Route exact path="/search/:type">
|
||||
<Redirect to="/browse" />
|
||||
</Route>
|
||||
<Route exact path="/browse/:query?" component={SearchView} />
|
||||
<Route exact path="/">
|
||||
<Redirect to="/browse" />
|
||||
</Route>
|
||||
|
||||
{/* other */}
|
||||
<Route
|
||||
|
|
Loading…
Reference in a new issue