+ Moved client to subfolder and added db communication
This commit is contained in:
21
client/src/routes.js
Normal file
21
client/src/routes.js
Normal file
@@ -0,0 +1,21 @@
|
||||
// App router
|
||||
|
||||
|
||||
// Pages
|
||||
import index from "./pages/index";
|
||||
import spells from "./pages/spells";
|
||||
|
||||
// Routes
|
||||
const routes = [
|
||||
{
|
||||
path: "*", redirect: "/",
|
||||
},
|
||||
{
|
||||
path: '/', component: index,
|
||||
},
|
||||
{
|
||||
path: '/spells', component: spells,
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in New Issue
Block a user