import IndexLayout from "@/layout/IndexLayout.vue";
import ArticleDetail from "@/views/ArticleDetail.vue";
import ArticleIndex from "@/views/ArticleIndex.vue";
import { createRouter, createWebHistory } from "vue-router";

export default createRouter({
	history: createWebHistory("/"),
	routes: [
		{
			path: "/",
			name: "Index",
			component: IndexLayout,
			children: [
				{
					path: "/",
					name: "ArticleIndex",
					component: ArticleIndex
				},
				{
					path: "/aid:id.html",
					name: "ArticleDetail",
					component: ArticleDetail
				},
				{
					path: "/about",
					name: "About",
					component: ArticleDetail
				}
			]
		}
	]
});
