mirror of https://github.com/morpheus65535/bazarr
36 lines
942 B
TypeScript
36 lines
942 B
TypeScript
|
import React, { FunctionComponent } from "react";
|
||
|
import { Redirect, Route, Switch } from "react-router-dom";
|
||
|
import { RouterEmptyPath } from "../404";
|
||
|
import Logs from "./Logs";
|
||
|
import Providers from "./Providers";
|
||
|
import Releases from "./Releases";
|
||
|
import Status from "./Status";
|
||
|
import Tasks from "./Tasks";
|
||
|
|
||
|
const Router: FunctionComponent = () => {
|
||
|
return (
|
||
|
<Switch>
|
||
|
<Route exact path="/system/tasks">
|
||
|
<Tasks></Tasks>
|
||
|
</Route>
|
||
|
<Route exact path="/system/status">
|
||
|
<Status></Status>
|
||
|
</Route>
|
||
|
<Route exact path="/system/providers">
|
||
|
<Providers></Providers>
|
||
|
</Route>
|
||
|
<Route exact path="/system/logs">
|
||
|
<Logs></Logs>
|
||
|
</Route>
|
||
|
<Route exact path="/system/releases">
|
||
|
<Releases></Releases>
|
||
|
</Route>
|
||
|
<Route path="/system/*">
|
||
|
<Redirect to={RouterEmptyPath}></Redirect>
|
||
|
</Route>
|
||
|
</Switch>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Router;
|