Skip to content

Instantly share code, notes, and snippets.

@stivncastillo
Created August 8, 2021 20:38
Show Gist options
  • Save stivncastillo/730c18c81190614459d3357a0eeb4c22 to your computer and use it in GitHub Desktop.
Save stivncastillo/730c18c81190614459d3357a0eeb4c22 to your computer and use it in GitHub Desktop.
Routes of private routes
import DashboardPage from "../pages/DashboardPage";
import LoginPage from "../pages/LoginPage";
import ProfilePage from "../pages/ProfilePage";
const routes = {
private: [
{
path: "/",
name: "dashboard",
component: DashboardPage
},
{
path: "/profile",
name: "profile",
component: ProfilePage
}
],
public: [
{
path: "/login",
name: "login",
component: LoginPage
},
]
}
export default routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment