2021-03-25 14:22:43 +00:00
|
|
|
import React, { FunctionComponent } from "react";
|
|
|
|
import { Redirect, Route, Switch } from "react-router-dom";
|
2021-04-23 16:18:09 +00:00
|
|
|
import { RouterEmptyPath } from "../special-pages/404";
|
2021-03-25 14:22:43 +00:00
|
|
|
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;
|