file: initialize files

This commit is contained in:
Leon Xu committed 2022-02-22 12:57:54 -08:00
1 parent 1ac21aadb0
commit ca8d7e55d5
55 files changed
+20560

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { createRouter, createWebHistory } from "vue-router";
import AddCity from "../views/AddCity.vue";
import Weather from "../views/WeatherView.vue";
const routes = [
{
path: "/weather/:city",
name: "Weather",
component: Weather,
},
{
path: "/",
name: "AddCity",
component: AddCity,
},
];
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
});
export default router;