import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { NavComponent } from 'src/app/components/nav/nav.component';
import { HomePageComponent } from '../home-page/home-page/home-page.component';
import { CommunityComponent } from '../community/community/community.component';
import { MineComponent } from '../mine/mine/mine.component';
import { ShopComponent } from '../shop/shop/shop.component';
import { CreateComponent } from './create/create.component';
import { FileinputComponent } from './fileinput/fileinput.component';


const routes: Routes = [{
  path: "",
  component: NavComponent,
  children: [
    { path: "home", component: HomePageComponent },
    { path: "community", component: CommunityComponent },
    { path: "mine", component: MineComponent },
    { path: "shop", component: ShopComponent },
    { path: "create", component: CreateComponent },
    { path: "fileinput", component: FileinputComponent },


  ],
}];

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