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.
19 lines
402 B
19 lines
402 B
7 years ago
|
// import local dependencies
|
||
|
import Router from './util/Router';
|
||
|
import common from './routes/common';
|
||
|
import home from './routes/home';
|
||
7 years ago
|
import catalog from './routes/catalog';
|
||
7 years ago
|
|
||
|
/** Populate Router instance with DOM routes */
|
||
7 years ago
|
const routes = new Router( {
|
||
|
// All pages
|
||
|
common,
|
||
|
// Home page
|
||
|
home,
|
||
|
// Catalog page
|
||
|
catalog,
|
||
|
} );
|
||
7 years ago
|
|
||
|
// Load Events
|
||
7 years ago
|
jQuery( document ).ready( () => routes.loadEvents() );
|