import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ScoreComponent } from './score.component';
import { TaskComponent } from './task.component';

const routes: Routes = [
  { path: 'score/my', component: ScoreComponent, data: { title: $localize`我的评分`, remoteUrl: '/napi/coloring/web/score/my', hideAuthor: true } },
  { path: 'score/all', component: ScoreComponent, data: { title: $localize`所有评分`, remoteUrl: '/napi/coloring/web/score/all' } },
  { path: 'task/my', component: TaskComponent, data: { title: $localize`我的任务`, remoteUrl: '/napi/coloring/web/score/task/my', hideAuthor: true } },
  { path: 'task/all', component: TaskComponent, data: { title: $localize`所有任务`, remoteUrl: '/napi/coloring/web/score/task/all' } },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ScoreRoutingModule { }
