mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2025-02-09 18:44:44 +00:00
51 lines
983 B
TypeScript
51 lines
983 B
TypeScript
import { IRouteProps } from "inferno-router/dist/Route";
|
|
import { Main } from "./components/main";
|
|
import { Apps } from "./components/apps";
|
|
import { Instances } from "./components/instances";
|
|
import { Contact } from "./components/contact";
|
|
import { Donate } from "./components/donate";
|
|
import { News } from "./components/news";
|
|
import { NewsItem } from "./components/news-item";
|
|
|
|
export const routes: IRouteProps[] = [
|
|
{
|
|
path: `/`,
|
|
exact: true,
|
|
component: Main,
|
|
},
|
|
{
|
|
path: `/apps`,
|
|
exact: true,
|
|
component: Apps,
|
|
},
|
|
{
|
|
path: `/news`,
|
|
exact: true,
|
|
component: News,
|
|
},
|
|
{
|
|
path: `/news/:title`,
|
|
exact: true,
|
|
component: NewsItem,
|
|
},
|
|
{
|
|
path: `/instances`,
|
|
exact: true,
|
|
component: Instances,
|
|
},
|
|
{
|
|
path: `/contact`,
|
|
exact: true,
|
|
component: Contact,
|
|
},
|
|
{
|
|
path: `/support`,
|
|
exact: true,
|
|
component: Donate,
|
|
},
|
|
{
|
|
path: `/donate`,
|
|
exact: true,
|
|
component: Donate,
|
|
},
|
|
];
|