You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
402 B
18 lines
402 B
// import local dependencies |
|
import catalog from './routes/catalog'; |
|
import common from './routes/common'; |
|
import home from './routes/home'; |
|
import Router from './util/Router'; |
|
|
|
/** Populate Router instance with DOM routes */ |
|
const routes = new Router( { |
|
// All pages |
|
common, |
|
// Home page |
|
home, |
|
// Catalog page |
|
catalog, |
|
} ); |
|
|
|
// Load Events |
|
jQuery( document ).ready( () => routes.loadEvents() );
|
|
|