Created
August 8, 2021 20:38
-
-
Save stivncastillo/730c18c81190614459d3357a0eeb4c22 to your computer and use it in GitHub Desktop.
Routes of private routes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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