import { NgModule } from '@angular/core';
import { AboutComponent } from './about/about.component';
import { RouterModule, Routes } from '@angular/router';
import { ResumeComponent } from './resume/resume.component';
import { ProjectsComponent } from './projects/projects.component';
import { BlogComponent } from './blog/blog.component';
import { ContactComponent } from './contact/contact.component';

const routes: Routes = [
  { path: '', component: AboutComponent, title: "Bangara Raju Kottedi" },
  { path: 'resume', component: ResumeComponent, title: "Bangara Raju Kottedi - Resume" },
  { path: 'projects', component: ProjectsComponent, title: "Bangara Raju Kottedi - Projects" },
  { path: 'weblog', component: BlogComponent, title: "Bangara Raju Kottedi - Posts" },
  { path: 'contact', component: ContactComponent, title: "Bangara Raju Kottedi - Contact" },
  { path: '**', redirectTo: '/'}
];

@NgModule({
  declarations: [],
  imports: [
    RouterModule.forRoot(routes)
  ],
  exports: [RouterModule]
})
export class AppRoutingModule { }
