2019-07-20 23:05:55 +00:00
|
|
|
// -----------------------------------------------
|
|
|
|
// Routing
|
|
|
|
// -----------------------------------------------
|
|
|
|
|
|
|
|
// [ set hash base ] -----------------------------
|
|
|
|
|
|
|
|
route.base('#');
|
|
|
|
|
|
|
|
// [ define routes ] -----------------------------
|
|
|
|
|
|
|
|
// home page
|
|
|
|
route('/', function () {
|
|
|
|
riot.mount('#view', 'home');
|
|
|
|
});
|
|
|
|
|
|
|
|
// about page
|
|
|
|
route('/about', function () {
|
|
|
|
riot.mount('#view', 'about');
|
|
|
|
});
|
|
|
|
|
2019-07-21 20:59:34 +00:00
|
|
|
export default route;
|