file: initialize files
This commit is contained in:
1 parent
1ac21aadb0
commit
ca8d7e55d5
55 files changed
+20560
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user