2024-02-14 16:43:11 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
|
import {HomeComponent} from "./home/home.component";
|
|
|
|
|
import {ViewSuspiciousScoresComponent} from "./view-suspicious-scores/view-suspicious-scores.component";
|
|
|
|
|
import {ViewSimilarReplaysComponent} from "./view-similar-replays/view-similar-replays.component";
|
|
|
|
|
import {ViewScoreComponent} from "./view-score/view-score.component";
|
|
|
|
|
import {ViewUserComponent} from "./view-user/view-user.component";
|
|
|
|
|
import {ViewReplayPairComponent} from "./view-replay-pair/view-replay-pair.component";
|
2024-02-24 11:16:21 +00:00
|
|
|
import {SearchComponent} from "./search/search.component";
|
2024-03-07 17:25:35 +00:00
|
|
|
import {ContributeComponent} from "./contribute/contribute.component";
|
2024-03-08 07:18:44 +00:00
|
|
|
import {BanlistComponent} from "./banlist/banlist.component";
|
2024-03-08 08:18:10 +00:00
|
|
|
import {FollowsComponent} from "./follows/follows.component";
|
2024-02-14 16:43:11 +00:00
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
|
{path: 'sus/:f', component: ViewSuspiciousScoresComponent, title: '/sus/'},
|
|
|
|
|
{path: 'sus', component: ViewSuspiciousScoresComponent, title: '/sus/'},
|
|
|
|
|
|
|
|
|
|
{path: 'stolen', component: ViewSimilarReplaysComponent, title: '/nu/'},
|
|
|
|
|
{path: 'stolen/:f', component: ViewSimilarReplaysComponent, title: '/nu/'},
|
|
|
|
|
|
|
|
|
|
{path: 'u/:userId', component: ViewUserComponent},
|
|
|
|
|
{path: 's/:replayId', component: ViewScoreComponent},
|
2024-03-06 14:07:12 +00:00
|
|
|
{path: 'c/:userReplayId', component: ViewScoreComponent},
|
2024-02-24 11:16:21 +00:00
|
|
|
{path: 'search', component: SearchComponent},
|
2024-02-14 16:43:11 +00:00
|
|
|
|
2024-03-06 14:07:12 +00:00
|
|
|
{path: 'p/:replay1Id/:replay2Id', component: ViewReplayPairComponent},
|
2024-03-04 23:32:57 +00:00
|
|
|
|
2024-03-08 08:18:10 +00:00
|
|
|
{path: 'follows', component: FollowsComponent, title: '/follows/'},
|
2024-03-08 07:18:44 +00:00
|
|
|
{path: 'banlist', component: BanlistComponent, title: '/ban/'},
|
2024-03-07 17:25:35 +00:00
|
|
|
{path: 'contribute', component: ContributeComponent, title: '/contribute/ <3'},
|
2024-03-08 08:18:10 +00:00
|
|
|
|
2024-02-14 16:43:11 +00:00
|
|
|
{path: '**', component: HomeComponent, title: '/nise.moe/'},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
|
imports: [RouterModule.forRoot(routes)],
|
|
|
|
|
exports: [RouterModule]
|
|
|
|
|
})
|
|
|
|
|
export class AppRoutingModule { }
|