@primitivesocial/ps-kernel
Version:
Middleware system with Vue Router and Vuex
30 lines (26 loc) • 515 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.redirect = redirect;
exports.next = next;
/**
* Return a Vue route object (https://router.vuejs.org/api/#route-object-properties)
* to tell the kernel which route to go
*
* @param routeName
* @returns {{name: *}}
*/
function redirect(routeName) {
return {
name: routeName
};
}
/**
* Returns null to tell the kernel to proceed with the next request.
*
* @returns {null}
*/
function next() {
return null;
}