---
# System prepended metadata

title: router

---

# router

PageごとのPath


| Page名 | Path | params |
----|----|----|
| Top | "/" | |
| SignIn | "/sign-in" | |
| LogIn | "/log-in" | |
| QuestList | "/quest-list" | |
| QuestSearch | "/quest-search" | |
| QuestCreate | "/quest-create" | |
| User | "/user" |  |
| User(my)|"/user/:toMyPage"| toMyPage(boolean), userId(string)|
| QuestDetail | "/quest-detail" | questId(string) |



```

const routes = [
  {
    path: "/quest-list",
    name: "QuestListPage",
    component: QuestListPage
  },
  {
    path: "/quest-create",
    name: "QuestCreatePage",
    component: QuestCreatePage
  },
  {
    path: "/user/:toMyPage",
    name: "UserPage",
    component: UserPage
  },
  {
    path: "/quest-detail/:questId",
    name: "QuestDetailPage",
    component: QuestDetailPage
  }
];

```