{"size": 584, "ext": "js", "max_stars_repo_path": "resources/js/router/index.js", "max_stars_repo_name": "th-drakopoulos/MovieRama", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/router/index.js", "max_issues_repo_name": "th-drakopoulos/MovieRama", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/router/index.js", "max_forks_repo_name": "th-drakopoulos/MovieRama", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.696969697, "max_line_length": 59, "alphanum_fraction": 0.6455479452}
import { createWebHistory, createRouter } from 'vue-router'

import Register from '../pages/Register.vue'
import Login from '../pages/Login.vue'

import Movies from '../components/Movies.vue'
import AddMovie from '../components/AddMovie.vue'

export const routes = [
  {
    name: 'home',
    path: '/',
    component: Movies
  },
  {
    name: 'register',
    path: '/register',
    component: Register
  },
  {
    name: 'login',
    path: '/login',
    component: Login
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes: routes
})

export default router
