-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.routes.ts
35 lines (33 loc) · 2.18 KB
/
app.routes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import {Routes} from '@angular/router'
import {ForumOverviewComponent} from "./views/forum-overview.component"
import {ShowForumComponent} from "./views/show-forum.component"
import {ShowThreadComponent} from "./views/show-thread.component"
import {CreateThreadComponent} from "./views/create-thread.component"
import {RegisterComponent} from "./views/register.component"
import {LoginComponent} from "./views/#.component"
import {SettingsComponent} from "./views/settings.component"
import {MediaComponent} from "./views/media.component"
import {EventsComponent} from "./views/events.component"
import {UsersComponent} from "./views/users.component"
import {ShowUserComponent} from "./views/show-user.component"
import {AdminComponent} from "./views/admin.component"
import {SearchForumComponent} from "./views/search-forum.component";
import {SystemSettingsComponent} from "./views/admin/system-settings.component";
import {ForumsComponent} from "./views/admin/forums.component";
export const APP_ROUTES: Routes = [
{ path: "", component: ForumOverviewComponent },
{ path: "forum/:id", component: ShowForumComponent },
{ path: "thread/:id", component: ShowThreadComponent },
{ path: "forum/:id/newthread", component: CreateThreadComponent },
{ path: "register", component: RegisterComponent },
{ path: "login", component: LoginComponent },
{ path: "settings", component: SettingsComponent },
{ path: "media", component: MediaComponent },
{ path: "events", component: EventsComponent },
{ path: "users", component: UsersComponent },
{ path: "user/:id", component: ShowUserComponent },
{ path: "admin", component: AdminComponent },
{ path: "admin/systemsettings", component: SystemSettingsComponent },
{ path: "admin/forums", component: ForumsComponent },
{ path: "search/forum", component: SearchForumComponent }
];